有什么办法让Docker下载公开的图片更快?
core@core-01 ~ $ docker run -p 3000:8080 paulbrennan/dillinger Unable to find image 'paulbrennan/dillinger' locally Pulling repository paulbrennan/dillinger 0a8ed7d461a1: Pulling dependent layers 511136ea3c5a: Download complete 8cbdf71a8e7f: Downloading 2.162 MB/67.49 MB 14m19s
有没有镜子或者添加镜子的方法? 为什么这么慢? 香港的互联网连接速度非常快。
我认为这个问题可能是我的位置,如果我在亚马逊的Linux服务器上运行这个服务器,它运行得很快,但是从我在香港的个人电脑那里运行得很慢。
你看过这篇文章吗?
Dockerizing Apt-Cacher-ng服务
http://docs.docker.com/examples/apt-cacher-ng/
提取
这个容器使得任何包的第二次下载几乎是即时的。
您可以将所需的图像推送到运行在您自己的基础架构中的dockerregistry中。
dockerregistry本身就是一个docker集装箱,所以设置起来非常简单。