Hi, I’m a newcomer to docker, until now I’ve been a Vagrant power-user where pulling boxes is a breeze, so this has been a bit surprising to me… It’s my first week with docker and trying to $ docker pull any image from the Hub, even official ones, is really slow, like 450Mb in 24h. The download speeds start ok, but the final layers are simply horrible.
I know this has been discussed several times, and I’ve done extensive research about the issue without luck in my attempts to fix it. I hope this is just a bug/misconfiguration on my end or somewhere, so I need some help debugging.
Docker Info:
$ docker info
Containers: 2
Images: 14
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 19
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.5-boot2docker
Operating System: Boot2Docker 1.7.0 (TCL 6.3); master : 7960f90 - Thu Jun 18 18:31:45 UTC 2015
CPUs: 2
Total Memory: 1.956 GiB
Name: boot2docker
ID: TWGP:ANRC:VQ27:IAZX:J47C:OY2H:TSXV:OQA3:KXZZ:ZP66:D75Y:MOSW
Debug mode (server): true
File Descriptors: 10
Goroutines: 15
System Time: 2015-06-24T11:13:14.345635609Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Docker version:
$ docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): darwin/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64
I’ve tried this script and it’s outdated. But I’ve tested and I’m able to wget any .iso image from that mirror with 5mbps average speeds being inside the boot2docker vm…
$ wget http://mirrors.sonic.net/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1503-01.iso
--2015-06-24 13:18:47-- http://mirrors.sonic.net/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1503-01.iso
Resolving mirrors.sonic.net... 69.12.162.27
Connecting to mirrors.sonic.net|69.12.162.27|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7591690240 (7.1G) [application/octet-stream]
Saving to: 'CentOS-7-x86_64-Everything-1503-01.iso'
CentOS-7-x86_64-Everything-1503-0 2%[> ] 159.75M 4.93MB/s eta 34m 17s
I’ve also tried to add: 54.224.119.89 cdn-registry-1.docker.io
entry to /etc/hosts
in the boot2docker vm (as suggested in a couple of related github issues). Still no luck.
For me, putting a private registry cache is not an option right now, it’s my first week with docker, I’m just evaluating the tool for my upcoming projects and I just expected a smooth devops experience interacting with the docker hub.
If you can shed a bit of light I’d be very grateful! Thanks!