Ubuntu17安装docker

2017-07-11  本文已影响0人  河的左岸

docker17.03.*-ce安装

安装软件包以允许apt通过HTTPS使用存储库:

 $ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

进行安装最新版本的ce:

$ sudo apt-get -y install docker-ce

参考这个,顺着做一遍就好了:
https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository

注意:
如果出现不知道ifconfig location之类的错误,直接在shell中执行这个指令,按照提示安装一下它即可了。

加速器

只推荐两个最好的,其他的就不说了:

其他daocloud等比较麻烦,要注册还有限制:
http://guide.daocloud.io/dcs/daocloud-9153151.html

参考:http://www.datastart.cn/tech/2016/09/28/docker-mirror.html

root@li-virtual-machine:/home/li#  bash -c "$(docker run --rm     daocloud.io/daocloud/dce install)"
Unable to find image 'daocloud.io/daocloud/dce:latest' locally
docker: Error response from daemon: Get https://daocloud.io/v2/: net/http:request canceled while waiting for connection (Client.Timeout exceeded while     awaiting headers).
See 'docker run --help'.
上一篇 下一篇

猜你喜欢

热点阅读