deepin

Deepin 15.4.1 安装docker-ce

2017-10-20  本文已影响79人  qingguee

使用官方安装方式会失败,因为错误的版本信息。这里指定版本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

上一篇 下一篇

猜你喜欢

热点阅读