美文网首页
Ubuntu Linux docker安装脚本

Ubuntu Linux docker安装脚本

作者: keluda | 来源:发表于2020-06-10 22:04 被阅读0次

    apt-get remove docker docker-engine docker.io

    apt-get update

    apt-get install \    apt-transport-https \    ca-certificates \    curl \    software-properties-common -y

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

    apt-key fingerprint 0EBFCD88

    add-apt-repository \  "deb [arch=amd64] https://download.docker.com/linux/ubuntu \

      $(lsb_release -cs) \

      stable"

    apt-get update

    apt-get install docker-ce -y

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

    chmod +x /usr/local/bin/docker-compose

    相关文章

      网友评论

          本文标题:Ubuntu Linux docker安装脚本

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