docker-install && config

2017-12-08  本文已影响29人  Aapon

docker install 指定版本

添加docker 阿里云源

1.cat >/etc/apt/sources.list.d/docker-main.list<<EOF
deb [arch=amd64] http://mirrors.aliyun.com/docker-engine/apt/repo ubuntu-xenial main
EOF

2. Add Docker’s official GPG key

curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -

3. apt update

apt-get update && apt-get upgrade -y 

4. remove old docker  verison

apt-get purge lxc-docker*

5. list docker vesion

apt-cache policy docker-engine 

6. install docker version

apt-get install -y docker-engine=17.03.0~ce-0~ubuntu-xenial

docker config

  1. Docker Config Registry
  1. Docker Config proxy
  1. Docker Root Dir Config

参考:
https://docs.docker.com/
https://www.xtplayer.cn/2017/02/2783

上一篇下一篇

猜你喜欢

热点阅读