centos下安装docker

1:sudo yum update

2:sudo yum remove docker docker-common docker-selinux docker-engine(安装过docker的话,就执行这句,否则pass)

3:sudo yum install -y yum-utils device-mapper-persistent-data lvm2

4:sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

5:sudo yum install docker-ce

7:sudo systemctl start docker

8:sudo systemctl enable docker

docker命令自动补全插件

9:yum install -y bash-completion

你可能感兴趣的:(docker)