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

Allow users to override imagestores #689

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Aug 13, 2020

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]

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]>
@rhatdan
Copy link
Member Author

rhatdan commented Aug 13, 2020

Partially fixes: containers/podman#7309

@rhatdan
Copy link
Member Author

rhatdan commented Aug 13, 2020

@QiWang19
Copy link
Contributor

PR needs rebase

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rhatdan
Copy link
Member Author

rhatdan commented Aug 17, 2020

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rhatdan rhatdan merged commit e1ccb3e into containers:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants