-
Notifications
You must be signed in to change notification settings - Fork 246
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 users to override imagestores #689
Conversation
We have a request from a user who wants to use imagestores and to be able to update them from podman. Currently if I setup /var/lib/shared as an additional store and I attempt update the share with a command like: Error: lock "/var/lib/shared/overlay-images/images.lock" is not a read-only lock I can not because Podman is still using the additonal store. User expected something like: Error: overlay: Unknown option additionalimagestore To work. I looked further and figured overlay.imagestore would work, but it still failed. This PR allows users to specify additionalimagestores on the command line, and to use more likely options to make it work. I also cleanup some of the option parsing in overlay.go to handle overlay, overlay2, and "." prefixes. I checked and none of the other drivers use additionalimagestores options. Signed-off-by: Daniel J Walsh <[email protected]>
Partially fixes: containers/podman#7309 |
PR needs rebase |
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
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
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
We have a request from a user who wants to use imagestores and
to be able to update them from podman.
Currently if I setup /var/lib/shared as an additional store
and I attempt update the share with a command like:
Error: lock "/var/lib/shared/overlay-images/images.lock" is not a read-only lock
I can not because Podman is still using the additonal store.
User expected something like:
Error: overlay: Unknown option additionalimagestore
To work.
I looked further and figured overlay.imagestore would work, but it still failed.
This PR allows users to specify additionalimagestores on the command line, and to use
more likely options to make it work.
I also cleanup some of the option parsing in overlay.go to handle overlay, overlay2, and "."
prefixes.
I checked and none of the other drivers use additionalimagestores options.
Signed-off-by: Daniel J Walsh [email protected]