docker upgrade to the latest version

step

  1. uninstall old docker
> rpm -qa | grep docker # 也可以使用 yum list installed | grep docker 
docker-engine-1.13.0-1.el7.centos.x86_64
docker-engine-selinux-1.13.0-1.el7.centos.noarch
> yum remove docker-engine-1.13.0-1.el7.centos.x86_64
> yum remove docker-engine-selinux-1.13.0-1.el7.centos.noarch
  1. Upgrade to the latest version
> curl -fsSL https://get.docker.com/ | sh
  1. restart docker
> systemctl restart docker # centos 7
> service docker restart # centos 6
  1. View the upgraded version
> docker version # docker -v

Author: cool breeze
Link: https://www.jianshu.com/p/28a89f78e9e6
Source: Jianshu
Copyright belongs to the author. For commercial reprints, please contact the author for authorization, and for non-commercial reprints, please indicate the source.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326189616&siteId=291194637