-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount command does not work inside podman containers #10263
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
May 7, 2021
What image are you seeing this with? When I look at fedora and alpine images, I see the link, but maybe these images come with the link. |
The container image is built based off of RHEL 7.9.
|
Seems like a bug should be opened against the image. Still, question
remains: should we add the link automatically if it doesn’t exist? I’m
leaning towards “no” but could be convinced otherwise
…On Fri, May 7, 2021 at 14:53 Vikas Goel ***@***.***> wrote:
The container image is built based off of RHEL 7.9.
bash-4.2# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
bash-4.2#
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCCOKUVXCRGBL6DNP6TTMQZMFANCNFSM44KWVLFA>
.
|
rhatdan
added a commit
to rhatdan/podman
that referenced
this issue
May 15, 2021
We should create the /etc/mtab->/proc/mountinfo link so that mount command will work within the container. Docker does this by default. Fixes: containers#10263 Signed-off-by: Daniel J Walsh <[email protected]>
Thank you all. |
mheon
pushed a commit
to mheon/libpod
that referenced
this issue
Jun 24, 2021
We should create the /etc/mtab->/proc/mountinfo link so that mount command will work within the container. Docker does this by default. Fixes: containers#10263 Signed-off-by: Daniel J Walsh <[email protected]>
pkegg
pushed a commit
to pkegg/AmberELEC
that referenced
this issue
Aug 26, 2021
dhwz
pushed a commit
to AmberELEC/AmberELEC
that referenced
this issue
Aug 28, 2021
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 21, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When mount command is run inside containers managed by Podman, the command shows nothing. The command works and shows all the mount points when the same containers are managed by Docker.
In the absence of mount command output, the application inside the existing containers fail to work.
In Docker managed container,
/etc/mtab
is a symbolic link to/proc/mounts
. Whereas, in Podman the symbolic link is missing. When the symbolic link is created manually in Podman managed container, themount
command works same as it does in Docker environment.Podman environment
Docker environment
Steps to reproduce the issue:
Load a Red Hat based container image with
mount
package installed in Podman environmentRun a container using the container image
Run
mount
command inside the containerDescribe the results you received:
The mount command shows no output
Describe the results you expected:
The mount command should show the mount points as available in /proc/mounts
Additional information you deem important (e.g. issue happens only occasionally):
The behavior is consistent and reproducible 100% of time
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
Red Hat Enterprise Linux 8.4 Beta
VMware virtual machine
The text was updated successfully, but these errors were encountered: