docker入門教程

  http://www.runoob.com/docker/ubuntu-docker-install.htmlhtml

 

安裝方法。docker

 

加速器daocloudubuntu

http://6ef6eb23.m.daocloud.iopost

 

Ubuntu 16.04和14.04的配置不一樣,具體見下面ui

https://blog.lab99.org/post/docker-2016-07-14-faq.html#ru-he-xuan-ze-docker-shu-jispa

 

$ sudo systemctl enable dockerrest

$ sudo vi /etc/systemd/system/multi-user.target.wants/docker.servicecode

在文件中找到 ExecStart= 這一行,而且在其行尾添加上所需的配置。假設咱們得到的加速器地址爲 https://jxus37ac.mirror.aliyuncs.com,那麼能夠這樣配置:htm

ExecStart=/usr/bin/dockerd --registry-mirror=https://jxus37ac.mirror.aliyuncs.comblog

保存退出後,從新加載配置並啓動服務:

$ sudo systemctl daemon-reload && sudo systemctl restart docker

確認一下配置是否已經生效:

$ sudo ps -ef | grep dockerd

相關文章
相關標籤/搜索