Repository navigation
Closed
Description
Version
windows 11 latest
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.10.81.1
Distro Version
ubuntu 22.04
Other Software
No response
Repro Steps
root@DESKTOP-7G94TC3:~# apt install podman
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
podman is already the newest version (3.2.1+ds1-2ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@DESKTOP-7G94TC3:~# podman run hello-world
Resolved "hello-world" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/hello-world:latest...
Getting image source signatures
Copying blob 2db29710123e done
Copying config feb5d9fea6 done
Writing manifest to image destination
Storing signatures
ERRO[0011] Error adding network: running [/usr/sbin/iptables -t nat -C CNI-c6500d9b0545f9b2bdd36cb1 -d 172.16.16.3/24 -j ACCEPT -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
ERRO[0011] Error while adding pod to CNI network "podman": running [/usr/sbin/iptables -t nat -C CNI-c6500d9b0545f9b2bdd36cb1 -d 172.16.16.3/24 -j ACCEPT -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
ERRO[0011] error loading cached network config: network "podman" not found in CNI cache
WARN[0011] falling back to loading from existing plugins on disk
ERRO[0011] Error tearing down partially created network namespace for container f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce: Error while removing pod from CNI network "podman": running [/usr/sbin/iptables -t nat -D POSTROUTING -s 172.16.16.3 -j CNI-c6500d9b0545f9b2bdd36cb1 -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
Error: error configuring network namespace for container f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce: running [/usr/sbin/iptables -t nat -C CNI-c6500d9b0545f9b2bdd36cb1 -d 172.16.16.3/24 -j ACCEPT -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Expected Behavior
container up and runing
Actual Behavior
root@DESKTOP-7G94TC3:~# apt install podman
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
podman is already the newest version (3.2.1+ds1-2ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@DESKTOP-7G94TC3:~# podman run hello-world
Resolved "hello-world" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/hello-world:latest...
Getting image source signatures
Copying blob 2db29710123e done
Copying config feb5d9fea6 done
Writing manifest to image destination
Storing signatures
ERRO[0011] Error adding network: running [/usr/sbin/iptables -t nat -C CNI-c6500d9b0545f9b2bdd36cb1 -d 172.16.16.3/24 -j ACCEPT -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
ERRO[0011] Error while adding pod to CNI network "podman": running [/usr/sbin/iptables -t nat -C CNI-c6500d9b0545f9b2bdd36cb1 -d 172.16.16.3/24 -j ACCEPT -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
ERRO[0011] error loading cached network config: network "podman" not found in CNI cache
WARN[0011] falling back to loading from existing plugins on disk
ERRO[0011] Error tearing down partially created network namespace for container f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce: Error while removing pod from CNI network "podman": running [/usr/sbin/iptables -t nat -D POSTROUTING -s 172.16.16.3 -j CNI-c6500d9b0545f9b2bdd36cb1 -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
Error: error configuring network namespace for container f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce: running [/usr/sbin/iptables -t nat -C CNI-c6500d9b0545f9b2bdd36cb1 -d 172.16.16.3/24 -j ACCEPT -m comment --comment name: "podman" id: "f0b196f127f9aded55b795dcb85ea9624e0c53941718547ab80e2e25f87914ce" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory
Diagnostic Logs
No response
Reacted by Aaron Covrig, Alexander Drozdov and cuttingedge1109
Metadata
Metadata
Assignees
Labels
No labels
Activity
sirredbeard commentedon Jan 22, 2022
This is an issue with how podman is configured in Ubuntu.
Ubuntu 21.10 Impish is the only version of Ubuntu that has podman packaged from the main repository.
I am able to reproduce this on Ubuntu 21.10 Impish.
I am unable to reproduce this on openSUSE Tumbleweed.
This does not appear to be an issue with WSL and should be reported to Ubuntu via Launchpad.
Able to reproduce on Ubuntu 21.10 Impish:
Unable to reproduce on openSUSE Tumbleweed:
sirredbeard commentedon Jan 24, 2022
You can report WSL-specific bugs in Ubuntu on WSL here: https://bugs.launchpad.net/ubuntuwsl
You could then report and cross-reference the bug on the podman package itself in Ubuntu and Debian.
On Ubuntu search for the package and follow the link on the right to report it: https://packages.ubuntu.com/impish/podman
You can do the same on Debian: https://packages.debian.org/bookworm/podman and file the bug here: https://bugs.debian.org/podman
davdr commentedon Feb 17, 2022
Based on my experience with Debian Sid, I suspect that:
awidjaja commentedon May 10, 2022
I would like to check if anyone working on this issue?
Not sure if David DR (@davdr) suggestion will work but If you have to update something to use the legacy on the os, I would think that the issue is with Podman implementation.
I reported the issue in Podman but was just simply redirected to here. Now, it is again redirected to Ubuntu. Like a ping pong game.
Should we just give up and conclude that Podman can not replace docker yet as it is missing essential feature of running priviledge container which is required by podman itself to be able to run podman inside a podman container?
davdr commentedon May 10, 2022
FWIW, Docker CE has exactly the same problem under WSL2: https://dev.to/lemosluan/comment/1nmi7
Looks like the WSL2 kernel is not compiled with the necessary flags for nftables to work.
dinurp commentedon Aug 6, 2022
fixed the issue for me. I had podman 3.4.4 on ubuntu 22.04.
It appears that it's better to migrate to nftables. Perhaps fix is available in podman for a later release. A later release of podman is not available for ubuntu 22.04 yet.
adminroot0000 commentedon Sep 23, 2022
Works for me!
microsoft-github-policy-service commentedon Feb 1, 2024
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!