Upgrade docker on CentOS 7

前端 未结 4 2101
执念已碎
执念已碎 2021-01-31 03:36

I\'m running centos 7 and have installed docker on host using epel packages:

yum install epel-release
yum install docker

But the docker version

4条回答
  •  长发绾君心
    2021-01-31 04:20

    Update to upgrade docker CentOS 7.4

    sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux  docker-engine-selinux docker-engine
    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    sudo yum install docker-ce
    
    
    sudo systemctl start docker
    sudo systemctl enable docker
    sudo systemctl status docker
    

    Refer:

    https://docs.docker.com/install/linux/docker-ce/centos/

提交回复
热议问题