Open ianmiell opened 7 years ago
Tried on Mac and got same result:
[root@swarm1 ~]# docker pull swarm
Using default tag: latest
Trying to pull repository docker.io/library/swarm ...
latest: Pulling from docker.io/library/swarm
220609e0bc51: Pulling fs layer
b54bf338fe2f: Pulling fs layer
d53aac5750d5: Pulling fs layer
Get https://registry-1.docker.io/v2/library/swarm/blobs/sha256:942fd5fd357e2fe2fcecbaf3dd77c313f22ce18a84a5a4d288c0df407a61e623: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: no such host
Get https://registry-1.docker.io/v2/library/swarm/blobs/sha256:942fd5fd357e2fe2fcecbaf3dd77c313f22ce18a84a5a4d288c0df407a61e623: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: no such host
Try disabling the DNS server on the guest:
config.landrush.guest_redirect_dns = false
Thanks - tried this but it did not work for me. Apologies I didn't retain the details. I ended up resolving with this code:
# Workaround for docker networking issues + landrush.
shutit.send('''echo "$(host -t A index.docker.io | grep has.address | head -1 | awk '{print $NF}') index.docker.io" >> /etc/hosts''')
shutit.send('''echo "$(host -t A registry-1.docker.io | grep has.address | head -1 | awk '{print $NF}') registry-1.docker.io" >> /etc/hosts''')
@ianmiell, still an issue?
I seem to be seeing issues using landrush when installing docker on guests.
No landrush - OK:
Landrush - fails:
Interestingly, I get different errors - dial tcp sometimes, sometimes parts download (as per above). Sometimes, restarting docker can 'help' get a layer or two before it fails again.
I tried, per the troubleshooting steps:
I did a bit of googling and it looks like similar issues are seen with Docker on Mac, but pretty quickly I'm out of my comfort zone.
I'm using Linux and Virtualbox.