安装
简单安装
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
yum install https://download.docker.com/linux/Fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
yum install docker-ce
chkconfig docker on
systemctl start docker
常用命令
docker pull
docker images
docker run -it -d --name XX -p 5700:5700 XXX
docker ps -a
卸载
yum list installed | grep docker
yum -y remove docker-ce.x86_64
yum -y remove docker-ce-cli.x86_64
yum -y remove containerd.io.x86_64
rm -rf /etc/docker && rm -rf /run/docker && rm -rf /var/run/docker && rm -rf /var/lib/dockershim && rm -rf /var/lib/docker