- 查看docker当前版本
$ docker -v
Docker version 1.12.6, build 3a094bd/1.12.6
- 卸载docker
sudo yum remove $(rpm -qa | grep docker)
- 下载最新版本docker
curl -fsSL https://get.docker.com/ | sh
- 重启docker
sudo systemctl restart docker # centos 7
sudo service docker restart # centos 6
- 再次查看docker版本
$ docker -v
Docker version 18.09.3, build 774a1f4
网友评论