docker安装
1.docker官网
官网这边有步骤,如果有老版本的需要卸载,卸载后也要删除rm -rf /var/lib/docker
2. docker安装官网步骤:
https://docs.docker.com/engine/install/centos/
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
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>
yum install docker-ce docker-ce-cli containerd.io
解决方案: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
systemctl start docker
4. docker版本:
5. docker进程查看
6.查看docker状态
7. 设置docker
启动docker:systemctl start docker
关闭docker:systemctl stop docker
设置开机启动:systemctl enable docker
8. 本地没有hello-world镜像,就从远程拉
docker pull hello-world