-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Podman cannot create container when an overlay volume has additional arguments #14427
Comments
@flouthoc PTAL |
I forgot to mention that the documentation for the The mention of the advanced usage of overlay mounts is only in the podman-run documentation
I assume the calls have a common code path for handling volumes |
Hi @haakobja , It seems this feature was only enabled for named volumes and you are attempting this feature on anonymous volume so you need to create a volume first or this PR should enable same feature for anonymous overlay volumes as well: #14474
So you can either wait for : #14474 or create a named overlay volume as stated above. |
I think I'll wait for the PR (didn't really think it would be implemented that quick). What I'm trying to do is to mount my home directory in a container, but I want the files to be persisted in a named volume, as I try to get my development environment to be contained within a container context. I have partially solved it by mounting a named volume as ~/.local, but it's not ideal |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I'm trying to create a container where I mount a volume as an overlay of $HOME/.local, but the overlay volume is not persistent. According to the documentation, I should be able to add some additional configuration parameters to get the volume mount to be persistent. Unfortunately, that doesn't work as expected.
Steps to reproduce the issue:
--volume="/dir:/dir:O,upperdir=/mnt/upper,workdir=/mnt/work"
. Make sure the directories existsDescribe the results you received:
Error message: Error: can't use 'O' with other options
Describe the results you expected:
The container should have been created as it is described in the podman documentation
Additional information you deem important (e.g. issue happens only occasionally):
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/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: