#Docker Networking Issues on Arch Linux

1 messages · Page 1 of 1 (latest)

tulip sequoia
#

I am having trouble with my docker networking setup on my vanilla Arch system. I am unable to get network connectivity within containers using the default bridge network, but am able to get connectivity when using --net=host, ie using the host network.

Paste with more info on what I have done and on my system: https://paste.rs/c6xkw.txt
If there is more info that would be helpful please let me know and I will try to get it.

The only similar issue I could find in the arch wikis is this: https://wiki.archlinux.org/title/docker#docker0_Bridge_gets_no_IP_/_no_internet_access_in_containers_when_using_systemd-networkd
But that seems to be for people using systemd-networkd as their network manager, which I am not doing. A potential idea I have is to get rid of NetworkManager and switch to systemd-networkd and try to employ the fix detailed there, though I am unsure if that would help and am hesitant to do so.

I am fairly certain this has something to do with my network setup on arch and its compatibility with docker, though I have tried to change many things relating to my network setup and firewall, and I couldn't find anything on the arch wiki about my setup being incompatible with docker. I am currently using NetworkManager with iwd for wireless auth and iptables for firewall. I messed around with iptables and switched to nftables at one point, but after having no success with that, I swapped back to iptables and cleared out all the settings, then reinstalled docker, having learned that docker manages iptables settings, so I let it reset the iptables settings to whatever docker wants as default.

I'm not sure if this is enough information to go on but I also don't know what other information to add. Any help would be appreciated.

Note: I have sought advice from the unofficial docker discord community. They told me to use a different operating system. I am looking for a way to use docker on arch, rather than change OS.

viral sail
#

Do you do anything with virtual machines on this computer? Do you have networking set up for that, or would it just be docker on this machine?

viral sail
#

This is very good output. I don't see anything obviously wrong.

#

The Docker manual recommends using a user-defined bridge instead of the default bridge network, is this docker0 interface a user-defined bridge as described in the manual

User-defined bridge networks are superior to the default bridge network.

Docker Documentation

All about using user-defined bridge networks and the default bridge

#

(I linked to the "Manage a user-defined bridge" section, but I don't think the link works)

tulip sequoia
#

As opposed to the default bridge network

#

I will begin attempting to do this very soon lol

tulip sequoia
#

As in no need to customize my iptables rule set. Docker can do whatever it wants with that

#

(I asked chat gpt and Claude for help and both just kept going on and on about customizing firewall rules which was no help)

tulip sequoia
#

Creating a new network with default settings doesnt work, but maybe changing some of the settings on that page could help? though I am not sure which ones.

doesn't work as in new network with default settings results in the same behavior

viral sail
#

I saw a reddit post about someone having the same issue, and they marked it [SOLVED] by switching to endeavour OS. I'm not very practiced in docker, sorry I can't be much more help. :/