CentOS7 安装Docker CE
官方网站:https://docs.docker.com/engine/installation/linux/docker-ce/centos/
-
卸载老版本Docker
$ sudo yum remove docker \ docker-common \ docker-selinux \ docker-engine
-
设置仓库
$ sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
$ sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
-
安装Docker
$ sudo yum install docker-ce
-
启动Docker
$ sudo systemctl start docker
-
卸载Docker CE
$ sudo yum remove docker-ce $ sudo rm -rf /var/lib/docker
网友评论