common: mount config dir to /etc/containers for machine#779
common: mount config dir to /etc/containers for machine#779Luap99 wants to merge 1 commit intocontainers:mainfrom
Conversation
This is wanted to share the same configs between host and machine and make edits easier. It also solves the problem of which config is read where as now there will only be one file. Fixes: https://redhat.atlassian.net/browse/RUN-3847 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
mtrmac
left a comment
There was a problem hiding this comment.
Just a drive-by: The implementation looks plausible, but I have really no opinion on whether this should happen, which is a much more important question.
| return MachineConfig{}, err | ||
| } | ||
| // Mount the (host side) user config dir to the machine /etc/containers | ||
| // This is done per request from PD who like to be able to persist config |
There was a problem hiding this comment.
We may forget, over time, what PD stands for.
There was a problem hiding this comment.
I agree with @mtrmac, this can be improved. It's not a podman desktop issue but rather a general improvement of UX for podman machine users.
|
LGTM |
|
Marking as draft as I need to do some tests in podman. I think one issue that machine mounts are not used on WSL. So I am not sure what best to do there? Also I believe this first requires the packaging changes from the config file rework to move all files to /usr. Otherwise we end up over mounting important files such as policy.json which will make podman pull fail. |
Yes |
This is wanted to share the same configs between host and machine and make edits easier. It also solves the problem of which config is read where as now there will only be one file.
Fixes: https://redhat.atlassian.net/browse/RUN-3847