centos8安装docker
一,docker的下载官网
https://download.docker.com/linux/
说明:架构森林是一个专注架构的博客,
网站:https://blog.imgtouch.com
本文: https://blog.imgtouch.com/index.php/2023/05/16/centos8linuxyum-an-zhuang-dockerdocker19036/
对应的源码可以访问这里获取: https://github.com/liuhongdi/
说明:作者:刘宏缔 邮箱: 371125307@qq.com
二,安装docker
1,下载安装docker用的repo:
[root@localhost ~]# curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
2,安装containerd.io包
[root@localhost ~]# yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
3,安装docker
[root@localhost ~]# yum install docker-ce
三,启动docker
[root@localhost ~]# systemctl start docker
四,查看docker的当前版本
[root@localhost ~]# docker --version Docker version 19.03.6, build 369ce74a3c
查看docker相关的完整信息:
[root@localhost ~]# docker version
这个返回的提示很长,不贴了
五,查看本地centos的版本:
[root@localhost lib]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core)