Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Conversation

@mhutter
Copy link
Contributor

@mhutter mhutter commented Mar 29, 2022

While it was already possible to use podman by setting the DOCKER_CMD
env var, this was not enough for most commands.

This commit adds support for Podman out of the box. If Docker is
installed, it will be preferred over Podman to stay
backwards-compatible.

The --userns=keep-id flag is required on Podman to ensure that 1.) the
process in the container can write to the mounted workdirs, and 2.)
ensure files created by processes in the container have the correct
owner
and group IDs: The ones from the user running the Make tasks.

Checklist

While it was already possible to use podman by setting the DOCKER_CMD
env var, this was not enough for most commands.

This commit adds support for Podman out of the box. If Docker is
installed, it will be preferred over Podman to stay
backwards-compatible.

The `--userns=keep-id` flag is required on Podman to ensure that 1.) the
process in the container can write to the mounted workdirs, and 2.)
ensure files created by processes in the container have the correct
owner
and group IDs: The ones from the user running the Make tasks.

Signed-off-by: Manuel Hutter <manuel@hutter.io>
@mhutter mhutter self-assigned this Mar 29, 2022
@mhutter mhutter added the change label Mar 29, 2022
@mhutter mhutter requested a review from simu March 29, 2022 13:30
@mhutter mhutter merged commit 50b264c into master Mar 29, 2022
@mhutter mhutter deleted the podman branch March 29, 2022 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants