Phil
Phil

Reputation: 50496

Is there any way to make Docker download public images faster?

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

Is there any mirror or a way to add a mirror? Why is it so slow? My internet connect is very fast here in Hong Kong.

I think the problem might be my location, if I run this on an Amazon linux server it runs fast, however from my PC here in Hong Kong its slow.

Upvotes: 3

Views: 1589

Answers (2)

Javier Castellanos
Javier Castellanos

Reputation: 9904

You can push the images you need into a docker registry running in your own infrastructure.

The docker registry is itself a docker container so it's really easy to set it up.

https://github.com/docker/docker-registry

Upvotes: 1

user2915097
user2915097

Reputation: 32216

Have you looked at this article

Dockerizing an Apt-Cacher-ng Service

http://docs.docker.com/examples/apt-cacher-ng/

extract

This container makes the second download of any package almost instant.

Upvotes: 1

Related Questions