-
Notifications
You must be signed in to change notification settings - Fork 779
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
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers #3726
Comments
@bcaton85 Thanks for creating the issue. I think its because the host But I think I'll also tag others if they could also suggest something here: @rhatdan @nalind @giuseppe @vrothberg @mtrmac |
what is the underlying host? podman/buildah expect the following:
I guess in your case it is something different? The issue with not having a shared propagation on the root mount is that some mounts could not be propagated inside the inner container causing all sorts of weird failures. |
Yeah this returns private. I am on CRC, not sure if that would make a difference.
We're using this strictly for builds but not sure if there will ever be a time we need to mount a volume for a build. |
Why does CRC have PROPAGATION of / set to private? |
Not sure. No CRC settings were modified. |
Could you open an issue with CRC? |
Sure, i can do that. |
could you please link the issue here once you've opened it? I am closing this issue for now, because there is nothing we can do to address it in Buildah |
I'm seeing the same issue in WSL2: $ podman images
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
REPOSITORY TAG IMAGE ID CREATED SIZE
$ findmnt -o PROPAGATION /
PROPAGATION
private
$ uname -r
5.10.16.3-microsoft-standard-WSL2 As a user, is there anything I can do to "fix" the problem? |
Does Fix it? |
I think you need |
☝️ yeah, that ran without problems and seemed to fix it. I thought there may be something WSL specific why that was set to |
Kernel default is Private. Systemd modifies the system to rshared by default. Is there a way to setup an init script in WSL to make this permanent? |
Ahhh. I thought it was when I checked in a new terminal... but WSL keeps running in the background. After doing I'll have to do some research to see how I can make that permanent... 🤔 |
What's the usual way in linux to configure this? Does it have to do with
(sorry for the noob linux questions! 😬) |
I tried adding I did find some good info in https://superuser.com/a/1701393 and ended up using the
|
The usual way would be an init script, (Systemd for example unit file). Don't believe fstab supports setting the sharing. |
@n1hility PTAL |
I gather WSL is a bit of an odd beast. I think the boot settings are the blessed way forward for Win11 users and, in the interim, the |
The way WSL works is that it shares the kernel between all "distros". This is accomplished through namespaces, so each distro gets a private mount namespace. If you are using podman machine for windows, we create a nested namespace to be able to run systemd, and that namespace is created with a shared mount namespace. So if you use podman machine this is handled for you. Alternatively you can remount like you are doing for something custom. |
I am on windows 11 and the command
generates `<3>init: (8) ERROR: CreateProcessParseCommon:746: Failed to translate \wsl.localhost\Debian\home\mwoodpatrick and I still: get
`I filed Microsoft issue: 8623 |
Description
Running Podman as pod in Openshift 4.9.10 using Code Ready Containers. The pod is running unprivileged, rootless, and is using VFS storage. It is also being set with chroot isolation. The image uses the podman/stable base image and adds
podman:100000:65536
to the subuid/subgid files and sets the storage option to VFS.When running a build with
podman build . --isolation chroot
the following warning appears at the start of each command:WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
The builds work but I would like to know what could be causing this warning and if it could lead to more issues in the future.
Steps to reproduce the issue:
podman:100000:65536
/home/podman/.config/containers/storage.conf
exec into pod and run:
podman build . --isolation chroot
See the following warning.
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
Describe the results you received:
The previous warning.
Describe the results you expected:
For the warning to not appear.
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of podman info --log-level debug
Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The
storage.driver
option is being overriden with VFS in the/home/podman/.config/containers/storage.conf
file.The text was updated successfully, but these errors were encountered: