CentOS安装Docker-ce

安装工具

yum-utils

1
sudo yum install -y yum-utils

添加repo

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

安装Docker

1
sudo yum install docker-ce

启用Docker-ce

1
service docker start