Skip to content
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

Unable to create anonymous volumes with --mount #13756

Closed
andrewaylett opened this issue Apr 2, 2022 · 1 comment · Fixed by #13757
Closed

Unable to create anonymous volumes with --mount #13756

andrewaylett opened this issue Apr 2, 2022 · 1 comment · Fixed by #13757
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

@andrewaylett
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Steps to reproduce the issue:

  1. When running a tool which is provided as a Docker image (in my case, jetbrains/qodana-gradle-plugin)

  2. The tool attempts to start a container with an anonymous volume mount: --mount type=volume,dst=/data/project/.gradle
    The full command executed is:

docker run --rm --name idea-inspections -p 8080:8080 -v /home/axa/dev/github.com/andrewaylett/asmble:/data/project -v /home/axa/dev/github.com/andrewaylett/asmble/build/results:/data/results --mount type=volume,dst=/data/project/.gradle jetbrains/qodana:latest
  1. This fails

Describe the results you received:

Podman reports:

Error: must set source volume

Describe the results you expected:

The container is created with an anonymous volume

Additional information you deem important (e.g. issue happens only occasionally):

This has been reported against Qodana in https://youtrack.jetbrains.com/issue/QD-2325

I have a local fix for this issue and intend to raise a PR for it shortly.

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.):

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 2, 2022
andrewaylett added a commit to andrewaylett/podman that referenced this issue Apr 2, 2022
This fixes containers#13756.

All the mechanics to create anonymous volumes is already present, but
there's still a validation preventing that path from being taken.  We
remove the validation, which allows the volume to be created
successfully.

Signed-off-by: Andrew Aylett <[email protected]>
@mheon
Copy link
Member

mheon commented Apr 3, 2022 via email

@github-actions 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 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants