一、设置docker repository
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
二、安装Docker Engine
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
三、启动docker
sudo systemctl start docker
四、验证
sudo docker run hello-world
使用docker不用输入sudo,将当前用户加入docker组:
sudo gpasswd -a ${USER} docker
标签:sudo,ce,repo,yum,Linux,Docker,安装,docker
From: https://www.cnblogs.com/shigongp/p/16724219.html