-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow modes z
and Z
for docker volumes
#18998
Conversation
z
and Z
for docker volumes
|
Will see what I can do. |
Is it correct that one can comma separate bind options, e.g. https://docs.docker.com/engine/storage/volumes/#choose-the--v-or---mount-flag: "The third field is optional, and is a comma-separated list of options, such as ro. These options are discussed below." (unfortunately I can't find the "below"... I was also asking myself if it might be an alternative to hardcode the corresponding binds as additional docker options? |
testing locally i can confirm, I also cannot find the below in their docs 🤔
I don't believe |
I ran this patch today and noted the following:
it seems the mounts are being interpreted as a literal
rather than being reduplicated like happens for rw/ro |
Judging by
below in the code I would've expected that that was the intended behaviour. However for every |
Guess we could simplify the code by dropping
|
f007331
to
84cc2cc
Compare
Co-authored-by: Helena <[email protected]>
In my testing it's still generating single element volumes, I'm not sure why. My reading of the code suggests that shouldn't be done anymore but, I'll need to look at it further. |
with 2d7cd6f, |
The combination - preprocess_volumes which creates Volume objects and creates strings again in the end and - creation of DockerVolumes which are only temporary and are soon converted to str again confused me and needed testing IMO. Also code was redundant.
My last commit should (I hope) make it testable. Could you add you test case? Then we may be able to understand what is going on. |
No, that's got it completely!
yeah that looks completely correct now. |
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.
Thanks for fixing this @bernt-matthias
This PR was merged without a "kind/" label, please correct. |
Fixes #18989
How to test the changes?
(Select all options that apply)
License