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

Set default to podman #24

Open
3 tasks
chevdor opened this issue May 2, 2023 · 4 comments
Open
3 tasks

Set default to podman #24

chevdor opened this issue May 2, 2023 · 4 comments

Comments

@chevdor
Copy link
Owner

chevdor commented May 2, 2023

See #23

This is more than just defaulting to podman.
There seem to be issues with podman related to the cache temp folder.

TODO:

Here is the list of changes required when the engine is set to podman:

  • turn on --no-cache
  • align UID/GID
  • warn the user that in case of issue, adding --root may help
@trusch
Copy link
Contributor

trusch commented May 23, 2023

@chevdor Can you elaborate on whats the issue that requires --no-cache? I see that it is set by default now but I'd like to understand the issue since this could significantly increase build times.

@chevdor
Copy link
Owner Author

chevdor commented May 23, 2023

The cache requires some mapping to temp folders and there are issues with those.
You can check the issues I opened in the podman repo.
Without --no-cache it is very likely it will not work out of the box with podman.

@andresilva
Copy link

FWIW I needed to use --root to work with podman. Not sure if that's something that everyone needs or if it's specific to my setup. Without the flag it would fail while trying to create the target directory.

@chevdor
Copy link
Owner Author

chevdor commented Jun 16, 2023

Ok, thanks for the report @andresilva
Some flags are "turned on" automatically when using podman to ensure it works for the user without headache.
I am reluctant however to set --root by default.

I think this is the typical issue related to UID/GID+Permissions not matching between container and host.

Using root is the hammer option but good to hear that it works at least.

A better option to investigate and to remove the requirement for --root would be to take care of aligning the UID/GID.

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

No branches or pull requests

3 participants