-
Notifications
You must be signed in to change notification settings - Fork 115
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
Share the additional container storage #766
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[storage] | ||
driver = "overlay" | ||
|
||
[storage.options] | ||
size = "" | ||
remap-uids = "" | ||
remap-gids = "" | ||
ignore_chown_errors = "" | ||
remap-user = "" | ||
remap-group = "" | ||
skip_mount_home = "" | ||
mount_program = "/usr/bin/fuse-overlayfs" | ||
mountopt = "" | ||
additionalimagestores = [ "/usr/lib/containers/storage",] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will need to allow non-root users access (at lest read) to this path. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The read access is set in the Containerfile. We could limit to a specific group, too. |
||
|
||
[storage.options.overlay] | ||
force_mask = "shared" |
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.
are you also setting
force_mask=shared
in thestorage.conf
file?If you do so, then podman will store the original permissions in an extended attribute, that it is used by fuse-overlays
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.
Currently, it is not set. Should it be in the global
storage.conf
or it could be in the user config?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.
sorry for the delay.
It must be in the configuration file for the user that is creating the storage (i.e. runs
podman pull
). Also, when using--root
, it tells Podman to ignore any other setting from thestorage.conf
, so in this case, it must be provided on the command line as a--storage-opt overlay.force_mask=shared
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 @giuseppe. I updated the user
storage.conf
template and the Containerfile. Would you mind reviewing again, please?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, 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.
Note that bootc does not preserve these extended arguments, you will lose them