美文网首页
Docker安装步骤

Docker安装步骤

作者: 王睿同学 | 来源:发表于2018-10-17 16:30 被阅读0次

    安装 Docker CE

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

    安装 Docker Compose

    curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    
    chmod +x /usr/local/bin/docker-compose
    
    docker-compose --version
    

    相关文章

      网友评论

          本文标题:Docker安装步骤

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