1

I followed the instructions here to install Docker CE on Centos 7. Everything went swimmingly until "docker run hello-world". I am unable to pull docker images at all.

I suspect network issues however I can ping the outside world with no issues. my user has been added to the docker group and is able to perform all the usual docker commands with no errors.

CentOS is running in VMWare with a static IP address in bridged mode.

UPDATE: I switched to NAT on the VM image and I am now able to pull. However, I will need to use Bridged mode soon so I would like to root cause this issue. I can install software using yum, I can install Docker, I just cannot pull containers.

I found this post which covers the same HTTP 408 error I am seeing. However, I am not finding anything odd with my network. Any thoughts on this are welcome. I will try running Wireshark and see if I can uncover anything.

Not a machine
  • 508
  • 1
  • 5
  • 21

1 Answers1

1

Problem solved! After digging around in the github Issues section I noticed a large number of issues around this problem. Following the preponderance of empirical data I set the MTU on my network device from 1500 to 900 and I was immediately able to pull hello-world.

ip link set dev ens33 mtu 900

I received a warning the following warning during the pull:

WARNING: IPv4 forwarding is disabled. Networking will not work.

so I added the following to /etc/sysctl.conf:

net.ipv4.ip_forward=1

I then restarted the network service and validated the setting:

[root@buildsvr2 ~]# systemctl restart network
[root@buildsvr2 ~]# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

Everything now works as expected.

Update: I am not sure WHY the MTU change worked. I had noticed large amounts of fragmented packets in my Wireshark trace. I will follow up on the Docker github site.

Not a machine
  • 508
  • 1
  • 5
  • 21