-
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
Ensure the Volumes field in Compat Create is honored #9025
Ensure the Volumes field in Compat Create is honored #9025
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Apparently it is not a safe assumption that |
5dc7ab2
to
31ec311
Compare
Looks like your test is failing. |
It is actually a different test that was broken by the addition of my test, which is confusing since I do clean up everything. I will take another look today. |
d993562
to
97203c0
Compare
Docker has, for unclear reasons, three separate fields in their Create Container struct in which volumes can be placed. Right now we support two of those - Binds and Mounts, which (roughly) correspond to `-v` and `--mount` respectively. Unfortunately, we did not support the third, `Volumes`, which is used for anonymous named volumes created by `-v` (e.g. `-v /test`). It seems that volumes listed here are *not* included in the remaining two from my investigation, so it should be safe to just append them into our handling of the `Binds` (`-v`) field. Fixes containers#8649 Signed-off-by: Matthew Heon <[email protected]>
97203c0
to
1ae410d
Compare
Looks like this is going to go green - @containers/podman-maintainers PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/lgtm |
Docker has, for unclear reasons, three separate fields in their Create Container struct in which volumes can be placed. Right now we support two of those - Binds and Mounts, which (roughly) correspond to
-v
and--mount
respectively. Unfortunately, we did not support the third,Volumes
, which is used for anonymous named volumes created by-v
(e.g.-v /test
). It seems that volumes listed here are not included in the remaining two from my investigation, so it should be safe to just append them into our handling of theBinds
(-v
) field.Fixes #8649