ubi9/httpd-24 dnf update breaks rootless run
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- apache, docker, linux, shell
- Domain
- devops, infrastructure
Research direction
Start with the provided Dockerfile and reproduce the failure using the listed podman build and rootless podman run commands. Compare the updated image with one built without dnf update, then identify the package or image change associated with the pid-file permission error. Done means the updated image runs rootlessly without the httpd startup failure.
Written by the indexing model from the issue text.
Description
Container platform
Podman/Docker
Version
ubi9/httpd-24
podman version 5.2.2
OS version of the container image
RHEL 9
Bugzilla, Jira
No response
Description
When I update the the latest packages using dnf update -a in my container file, I can no longer run the container in rootless mode using podman. See my container file:
FROM registry.access.redhat.com/ubi9/httpd-24:latest
USER root
RUN dnf update -y && dnf clean all -y
USER default
And here is my podman run command and the error message:
podman run --rm -p 8080:8080 --name httpd -d httpd-updated:latest && podman logs -f httpd
189ab4ae8a7826d38f200d034281981fcd9c14e2181a1f04698c9a8353f51118
=> sourcing 10-set-mpm.sh ...
=> sourcing 20-copy-config.sh ...
=> sourcing 40-ssl-certs.sh ...
---> Generating SSL key pair for httpd...
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.0.151. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
Note if I build the image without the dnf update -y line it works fine, it's only updating to the latest packages, that breaks rootless running.
Reproducer
build and run this image using podman in rootless mode:
Dockerfile
FROM registry.access.redhat.com/ubi9/httpd-24:latest
USER root
RUN dnf update -y && dnf clean all -y
USER default
Build with podman
podman build -t httpd -f ./Dockerfile
Run with podman rootless
podman run --rm -p 8080:8080 --name httpd-test -d httpd:latest && podman logs -f httpd-test
- Dominant language
- Shell
- Stars
- 52
- Forks
- 122
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sclorg/httpd-container
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
sclorg/httpd-container#255 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
sclorg/httpd-container#232 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
sclorg/httpd-container#169 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
sclorg/httpd-container#131 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 50/100
sclorg/httpd-container#127 · 1 comment ·
All issues in sclorg/httpd-container
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 91/100
alunduil/alunduil-chezmoi#792 ·