You are not logged in.
What does not work — ping to any IP address using -I docker0 arguments to ping. However, I can access that IP from my default interface.
I have both iptables.service and nftables.service enabled and running. Tried to change kernel version from 5.1.3-arch2-1 to 4.19.44-1, docker version from 18.09.6 to 18.06.0 and systemd-networkd to dhcpcd, nothing did work.
systemd-networkd has IPForward=yes in my .network file and sysctl net.ipv4.ip_forward is 1.
How do I fix that?
Last edited by gasebupor (2019-05-22 16:51:20)
Offline
What problem are you trying to solve...the command you listed doesn't work on my machine either and I use Docker every day. The important question is whether you can access the internet from a container. Does this work?
docker run -it --rm alpine ping -c3 google.comOffline
Solved. Docker does not automagically fill nftables, it only works with iptables and iptables translator seems to be bad at its job.
Offline
Also, I forgot to mention that I was wrong using docker0 interface. It should be used just as a master interface for container interfaces, which did not work either.
Offline