Closed DarrenRainey closed 8 months ago
What does
# podman run --rm docker.io/rockylinux/rockylinux:9 cat /etc/os-release
report?
I've just made a new fresh container and this is the output / also tried installing docker-ce in a previous container but no change.
[root@CT104 freeipa-container]# podman run --rm docker.io/rockylinux/rockylinux:9 cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
What do you mean by "no change"?
I though I might be missing some docker dependices with podman but regardless I still get the same error when running with either podman or docker-ce
So if I understand it correctly, you try to build the image by running podman
or docker
within another container, and you don't have the /dev/net/tun
device that slirp4netns
requires? The use of slirp4netns
suggests that the LXC container is already unprivileged, in spite of that #
shell prompt. So this is some type of container in user namespaced container scenario.
And for some reason build fails but running the container works.
I assume building different container images from different Dockerfile
, like
FROM docker.io/rockylinux/rockylinux:9
RUN true
will fail as well, is that correct?
What happens if you use --net=host
parameter to podman build
?
So I tried doing a manual install of freeipa-serrver using the rocky repo's and ran into some issues with chronyd since the LXC container doesn't have permissions to change kernel paramters.
I've abandoned the LXC container and I am now installing it in a rregular VM which appears to be working as expected (Using the rocky repo's / native install instead of a podman/docker container)
I'll need to do some more testing with LXC but for the moment I'm going to consider this issue closed.
Clean install of Rocky Linux 9 running in a Proxmox LXC containers fails to build at Step 2
Output: