Closed yellowhat closed 1 month ago
Can you add --log-level debug
to the podman run -it --net a ...
command and provide the full output please
Sure:
Using an older version seems to work:
$ podman run -it --rm --privileged quay.io/podman/stable:v4.9.4
...
[root@d80777d4e6fe /]# podman network create a
a
[root@d80777d4e6fe /]# podman run -it --net a alpine hostname
Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Copying blob d25f557d7f31 done |
Copying config 1d34ffeaf1 done |
Writing manifest to image destination
WARN[0002] Path "/run/secrets/etc-pki-entitlement" from "/etc/containers/mounts.conf" doesn't exist, skipping
WARN[0002] Path "/run/secrets/rhsm" from "/etc/containers/mounts.conf" doesn't exist, skipping
d80777d4e6fe
can you unset _CONTAINERS_USERNS_CONFIGURED
in the container, i.e. run with --unsetenv _CONTAINERS_USERNS_CONFIGURED
on the outer container.
I am not sure why this is set in our images by default as this is a internal detail and does not look correct to me at all.
It works:
$ podman run -it --rm --privileged --unsetenv _CONTAINERS_USERNS_CONFIGURED quay.io/podman/stable:v5.0.2
[root@2215684bcb22 /]# env | grep _CON
[root@2215684bcb22 /]# podman network create a
a
[root@2215684bcb22 /]# podman run -it --net a alpine hostname
Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Copying blob d25f557d7f31 done |
Copying config 1d34ffeaf1 done |
Writing manifest to image destination
2215684bcb22
Ack I will create a fix, looks we only only set it to an empty string and the interal code sets a value so I should ignore the empty value I guess
Issue Description
Hi, I would like to run
kind
inside a podman container.I am able to reproduce the error by creating and using a network using
podman
from inside a podman container:Is this expected?
Thanks
Steps to reproduce the issue
Steps to reproduce the issue
podman run -it --rm --privileged quay.io/podman/stable:v5.0.2
podman network create a
podman run -it --net a alpine hostname
Describe the results you received
Describe the results you expected
Container is created and run
podman info output