Skip to content

common: mount config dir to /etc/containers for machine#779

Draft
Luap99 wants to merge 1 commit intocontainers:mainfrom
Luap99:machine-config-mount
Draft

common: mount config dir to /etc/containers for machine#779
Luap99 wants to merge 1 commit intocontainers:mainfrom
Luap99:machine-config-mount

Conversation

@Luap99
Copy link
Copy Markdown
Member

@Luap99 Luap99 commented Apr 21, 2026

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

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>
@github-actions github-actions Bot added the common Related to "common" package label Apr 21, 2026
@Luap99
Copy link
Copy Markdown
Member Author

Luap99 commented Apr 21, 2026

cc @l0rd @ashley-cui @baude

@Luap99 Luap99 added the podman 6 breaking changes that should go only into podman 6 only label Apr 21, 2026
Copy link
Copy Markdown
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We may forget, over time, what PD stands for.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

@baude baude left a comment

Choose a reason for hiding this comment

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

LGTM

@ashley-cui
Copy link
Copy Markdown
Member

LGTM

@Luap99 Luap99 marked this pull request as draft April 22, 2026 09:58
@Luap99
Copy link
Copy Markdown
Member Author

Luap99 commented Apr 22, 2026

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.

@l0rd
Copy link
Copy Markdown
Member

l0rd commented Apr 22, 2026

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?

Yes C: is mounted by default and the mounts in the machine config are ignored. A solution may be to create a symlink at machine startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package podman 6 breaking changes that should go only into podman 6 only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants