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

run: Add support for --bind (on linux, with virtiofsd) #36

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cgwalters
Copy link
Contributor

This is extremely useful for local development cases, as
I can e.g. bind mount binaries I built on the host system.

Signed-off-by: Colin Walters walters@verbum.org

Prep for adding virtiofs support.
See fedora-selinux/selinux-policy#2124
for the tracker.

Signed-off-by: Colin Walters <walters@verbum.org>
This is extremely useful for local development cases, as
I can e.g. bind mount binaries I built on the host system.

Signed-off-by: Colin Walters <walters@verbum.org>
Comment on lines +62 to 63
runCmd.Flags().StringArrayVar(&vmConfig.BindMounts, "bind", nil, "Create a virtiofs mount between host and guest, separated by a `:`")
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not using "-v/--volume"?, even if not a great name is more coherent with podman

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, sorry when working on this I'd been in a mindset of porting features from coreos-assembler run. Will change.

@vrothberg
Copy link
Member

Maybe time to revive this PR?

@germag
Copy link
Collaborator

germag commented Nov 19, 2024

Maybe time to revive this PR?

I'm ok with this PR, but I still think it's worth changing --bindto -v|--volume to be compatible with podman

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.

3 participants