美文网首页
ubuntu18.04安装docker

ubuntu18.04安装docker

作者: xun2019 | 来源:发表于2020-07-17 15:31 被阅读0次

    官网地址

    https://docs.docker.com/engine/install/ubuntu/

    sudo apt-get remove docker docker-engine docker.io containerd runc
    
    sudo apt-get update
    
    sudo apt-get install \
        apt-transport-https \
        ca-certificates \
        curl \
        gnupg-agent \
        software-properties-common
    
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
    sudo apt-key fingerprint 0EBFCD88
    
    sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
    
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io
    
    

    ufw 针对docker端口管理失效解决:

    vi /etc/default/docker
    
    添加:
    DOCKER_OPTS="--iptables=false"
    重启docker
    systemctl restart docker
    

    相关文章

      网友评论

          本文标题:ubuntu18.04安装docker

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