美文网首页
Docker 安装 in CentOS

Docker 安装 in CentOS

作者: 一杉风雨 | 来源:发表于2018-11-11 21:06 被阅读0次

    参考官方教程

    1. Uninstall old versions
    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
    
    1. Set up the repository
    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
    
    1. Install docker ce
    sudo yum install -y docker-ce
    
    1. Install a specific version of docker ce
    yum list docker-ce --showduplicates | sort -r
    sudo yum install docker-ce-<VERSION STRING>
    
    1. Start docker
    sudo systemctl start docker
    

    相关文章

      网友评论

          本文标题:Docker 安装 in CentOS

          本文链接:https://www.haomeiwen.com/subject/oeeffqtx.html