-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docker-in-docker] Not working on fedora kernel > 6.11.7-300.fc41.x86_64 #1235
Comments
Hello @michalholis , Thank you for reporting the issue. I will check and get back on this. With Regards, |
Same issue here on Bluefin which is a distro based on Fedora |
Any updates on this? |
Some information and workaround (debian bookworm docker image)
failed to start daemon: Error initializing network controller:
error obtaining controller instance: failed to register "bridge" driver:
failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER:
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.12.11-200.fc41.x86_64
iptables v1.8.9 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3) Problem is that your host system do not load To load sudo modprobe ip_tables Pernament solution that survive reboots ( I am using Fedora silverblue )
|
I suspect this might happen if you don't have the If I do this inside the container (using ubuntu as base): sudo update-alternatives --set iptables /usr/sbin/iptables-nft
sudo dockerd then it doesn't fail. However, I can see that features/src/docker-in-docker/install.sh Lines 218 to 222 in 5c67da0
I am not fully sure about that, but maybe the installation script should not link to |
@spietras Yes you are right load ip_tables kernel module resolve this issue 👍 |
Feature https://github.com/devcontainers/features/tree/main/src/docker-in-docker for some reason doesn't work for us on Fedora 41 on kernel versions 6.11.7-300.fc41.x86_64. Kernel 6.11.7-300.fc41.x86_64 is the last one working without issues. On any newer kernel any docker command returns
Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
.Communication fails on any docker command and fails even on clean Fedora installation.
The text was updated successfully, but these errors were encountered: