For the RHEL 10 version of the course
Chapter 18 Guided Exercise: Create Installable Images for Image Mode
Step 4, building the image, fails with the following error message:
STEP 3/4: RUN dnf install -y httpd && systemctl enable httpd
error running container: from /usr/bin/crun creating container for [/bin/sh -c dnf install -y httpd && systemctl enable httpd]: mount `proc` to `proc`: Operation not permitted
: exit status 1
Error: building at STEP "RUN dnf install -y httpd && systemctl enable httpd": while running runtime: exit status 1
@ClusterCaptain Lrt me try this and let you know
I still get the same error, even after a lab refresh.
@ClusterCaptain lab refresh means delete and recreate ?
Yes, I have deleted and recreated the lab, but still no luck
The best is to raise a support ticket directly from the platform so the lab engineers can review your issue.
@ClusterCaptain I agree with Wasim that the lab is working fine. You can delete your existing lab and recreate a fresh lab - and then retry this.
Please let us know how it went in a fresh lab.
@ClusterCaptain I did this lab multiple times today and never for once it failed for me :
with which user are you running the podman build command ? Can we see your containerfile ? Are you using the correct parent image :
registry.lab.example.com:5000/rhel10/rhel-bootc
I am pretty sure if you rebuild your lab env - it will be resolved for you.
This is some kind of a nested rootless podman issue because may be you are using wrong parent image which does not have the privilege or the systemd support.
I am getting the exact same error that @ClusterCaptain got when I am trying this same Guided Exercise.
I also tried deleting my entire Lab Environment and creating a new Lab and am still getting the error.
I did NOT hand jam the entries in the Containerfile; I copied them from one browser tab (CMD-C on my Mac) and pasted them (CMD-V) into the tab with my vim Containerfile open in INSERT mode.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.