docker安装

1.docker官网

https://docs.docker.com/

官网这边有步骤,如果有老版本的需要卸载,卸载后也要删除rm -rf /var/lib/docker

2. docker安装官网步骤:

https://docs.docker.com/engine/install/centos/

docker安装

3. linux下命令

yum install -y yum-utils

 <span><span><span>yum-config-manager <span>\</span></span></span></span>

--add-repo     https://download.docker.com/linux/centos/docker-ce.repo

docker安装

yum-config-manager --enable docker-ce-nightly
yum-config-manager --enable docker-ce-test

 yum list docker-ce <span>--showduplicates | sort <span>-r</span></span>

docker安装

 docker安装

yum install docker-ce docker-ce-cli containerd.io

docker安装

解决方案:yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.13-3.1.el7.x86_64.rpm

yum install docker-ce docker-ce-cli containerd.io

docker安装

 docker安装

systemctl start docker

4. docker版本:

docker安装

5. docker进程查看

docker安装

 docker安装

6.查看docker状态

docker安装

7. 设置docker

启动docker:systemctl start docker

关闭docker:systemctl stop docker

设置开机启动:systemctl enable docker

8. 本地没有hello-world镜像,就从远程拉

docker pull hello-world

docker安装

相关推荐