Ubuntu16.04 Server版安装及优化
https://blog.51cto.com/dldxzjr/2517922
$ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun
$ sudo systemctl enable docker
$ sudo systemctl start docker
$ sudo touch /etc/docker/daemon.json
$ echo ‘{
"registry-mirrors": [
"https://dockerhub.azk8s.cn",
"https://hub-mirror.c.163.com"
]
}‘| sudo tee /etc/docker/daemon.json
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
$ sudo sed -i s/‘GRUB_CMDLINE_LINUX=""/‘GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1‘"/g /etc/default/grub
$ sudo update-grub
$ sudo reboot
Ubuntu16.04 Server版的docker安装及优化
原文:https://blog.51cto.com/dldxzjr/2531759