美文网首页deepin
Deepin 15.4.1 安装docker-ce

Deepin 15.4.1 安装docker-ce

作者: qingguee | 来源:发表于2017-10-20 06:31 被阅读79次

    使用官方安装方式会失败,因为错误的版本信息。这里指定版本wheezy stable.

    命令

       sudo apt-get remove docker docker-engine
       sudo apt-get install apt-transport-https ca-certificates curl python-software-properties software-properties-common
       curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
       sudo apt-key fingerprint 0EBFCD88
       sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian wheezy stable"
       sudo apt-get update
       sudo apt-get install docker-ce
       sudo docker version
    
    
    Client:
     Version:      17.09.0-ce
     API version:  1.32
     Go version:   go1.8.3
     Git commit:   afdb6d4
     Built:        Tue Sep 26 22:42:14 2017
     OS/Arch:      linux/amd64
    
    Server:
     Version:      17.09.0-ce
     API version:  1.32 (minimum version 1.12)
     Go version:   go1.8.3
     Git commit:   afdb6d4
     Built:        Tue Sep 26 22:40:56 2017
     OS/Arch:      linux/amd64
     Experimental: false
    
    
    

    添加国内加速器

    请自行替换加速器地址。

    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
      "registry-mirrors": ["https://xxxxxxx.mirror.aliyuncs.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
    

    Storage Driver: overlay2

    Storage driver 在docker-ce 17.09 已经默认overlay2了,这里就不需要更改了。
    如果想要更改,请follow官方文档。
    Select a storage driver

    相关文章

      网友评论

        本文标题:Deepin 15.4.1 安装docker-ce

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