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

相关文章
相关标签/搜索