Comment on How do I stop Docker trying to pull from IPv6?
tychosmoose@piefed.social 3 days agoOk, so it's probably using NetworkManager. I would try disabling it in /etc/NetworkManager/NetworkManager.conf by adding a block like:
[ipv6]
addr-gen-mode=stable-privacy
method=disabled
Then sudo systemctl restart NetworkManager
.
Can't say for sure if this will work. I dislike using NetworkManager on my servers so I can't test if this works. But hopefully the before/after of ip addr
is different.
Although it looks like your ip addr
output posted an hour or so ago doesn't show any ipv6 addressing. Maybe the problem is solved now.
Zagorath@aussie.zone 3 days ago
Unfortunately not.
tychosmoose@piefed.social 3 days ago
Well crap. Do you have no ipv6 address now in
ip addr
?Guess I gave Docker too much benefit of the doubt and assumed it should failover to v4 once v6 was disabled. Bad assumption on my part.
Could it be a DNS problem? If you
dig registry-1.docker.io +short
does it return an ipv4 or v6 address?It looks like there have been sporadic reports of problems from people since last year.
MysteriousSophon21@lemmy.world 2 days ago
Try adding
{“ipv6”: false}
to your/etc/docker/daemon.json
file (create it if it doesnt exist), then restart docker withsudo systemctl restart docker
- this forces docker to use IPv4 only.tychosmoose@piefed.social 2 days ago
This flag seems to only disable ipv6 on the default Docker bridge network, not daemon-wide. At least per this discussion.
Zagorath@aussie.zone 3 days ago
Just comparing it by eye, there’s no change.
But if I ping it
tychosmoose@piefed.social 3 days ago
It's in the dnsutils package.