Skip to content

Conversation

@saminaltamimi
Copy link
Contributor

Bootc upstream currently recommends the following:

--cap-add=all --security-opt=label=type:container_runtime_t --device /dev/fuse

If you look at the corresponding issue (https://gitlab.com/fedora/bootc/base-images/-/issues/43)

it becomes clear that --userns=host --security-opt=label=type:container_runtime_t will suffice.

Although the image builds now, following upstream guidance (especially if you're like me and you change the Containerfile) is probably better.

Bootc upstream currently recommends the following:

`--cap-add=all --security-opt=label=type:container_runtime_t --device /dev/fuse`

If you look at the corresponding issue (https://gitlab.com/fedora/bootc/base-images/-/issues/43)

it becomes clear that `--userns=host --security-opt=label=type:container_runtime_t` will suffice.

Although the image builds now, following upstream guidance (especially if you're like me and you change the Containerfile) is probably better.
@tulilirockz
Copy link
Member

Funnily enough I think this might not be necessary? These builds are effectively just a normal Containerfile build, but we compile bootc inside of it. I feel like this is probably necessary only images utilizing bootc-base-imagectl, which we don't need to do here.

@saminaltamimi
Copy link
Contributor Author

When I build on WSL2 under the podman machine, I usually have to have these args to build it. Though I wonder if it's a quirk of my environment.

@tulilirockz
Copy link
Member

Apparently this is not an issue with the way we build images? Basically like there isn't anything particularly different from how these images specifically are build, it seems odd that you ran into this still... Hm....

@saminaltamimi
Copy link
Contributor Author

I'll recheck again on my setup, it could be a non-issue.

@saminaltamimi
Copy link
Contributor Author

Closing, environment issue unapplicable to the project

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.

2 participants