Documentation/experience on rootless containers? #1808
Unanswered
nicholasjng
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Why do you want to run as non-root in GitHub Actions? I think the default runners give you root anyway. Or, maybe you're running on a self-hosted runner? I'll also ping @Erotemic who contributed the podman support and seems to know a lot more about containers than me! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm currently looking for ways to build Linux wheels as a non-root user with cibuildwheel in GitHub Actions.
The docs mention that podman is the available alternative container engine for people looking to build using rootless containers, but there is no "official" cibuildwheel example config/snippet on this with GHA. I researched a little bit, and it does not look straightforward to produce these containers.
Does anyone have experience using rootless containers in GH Actions? I'll continue researching in the meantime, and if I get somewhere, I'm of course open to contribute a working setup demo if there is interest.
PS: I tried with
CIBW_CONTAINER_ENGINE: "docker; create_args: --user 1001"
, but that fails in theOCIContainer
start due to lack of permissions to usemkdir
:cibuildwheel/cibuildwheel/oci_container.py
Lines 185 to 189 in 9cf99e7
Beta Was this translation helpful? Give feedback.
All reactions