CentOS环境下更新Docker常用方法如下:
sudo systemctl stop dockersudo yum remove docker docker-client docker-common docker-enginesudo yum install -y yum-utilssudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.reposudo yum makecache fastsudo yum install docker-ce docker-ce-cli containerd.iosudo systemctl start docker,sudo systemctl enable dockerdocker --versioncurl -fsSL https://get.docker.com -o get-docker.sh,sh get-docker.shsudo systemctl start docker,docker --version