设置yum源
> sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
查看仓库所有docker版本
> yum list docker-ce --showduplicates | sort -r
安装docker
> sudo yum install docker-ce
启动
> sudo systemctl start docker
设置开机启动
> sudo systemctl enable docker
停止
> sudo systemctl stop docker
重启
> sudo systemctl restart docker
状态
> sudo systemctl status docker
版本
> docker version
网友评论