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

Defaulting to --pod on breaks compose file with --userns #795

Closed
deliciouslytyped opened this issue Oct 19, 2023 · 5 comments
Closed

Defaulting to --pod on breaks compose file with --userns #795

deliciouslytyped opened this issue Oct 19, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@deliciouslytyped
Copy link

7f5ce26 breaks one of my compose files because Error: --userns and --pod cannot be set together. Passing --in-pod=False or something, would presumably fix this, but

Is there a way to disable --pod in the yaml? If not, can there be a way added to do it from here on out, or can this somehow be fixed?

I tried looking at the source but couldn't figure out if there is an existing way to do it.

@deliciouslytyped deliciouslytyped added the bug Something isn't working label Oct 19, 2023
@MrSSvard
Copy link

I think the check needs to be updated too. The only way to have it not be in a pod that I figured out is --in-pod ""
This worked before when the default was False as any "--in-pod" argument meant you wanted a pod.

A completely new argument probably needs to be created unless we either revert the default or occupy a special pod name "False" that means no pod will be used.

@uosis
Copy link

uosis commented May 2, 2024

podman compose --in-pod= up works, but this change of behavior is not great. Why is it desirable to default to running in pod? It seems like a needless deviation from docker compose behavior.

@camporter
Copy link

Same issue here, strange that the default behavior is to break userns options, which is incredibly necessary when dealing with a mix of rootful and rootless containers under podman.

@schugabe
Copy link
Contributor

Same issue here that change and breaks pretty much all my projects.

@mokibit
Copy link
Contributor

mokibit commented Jun 19, 2024

@deliciouslytyped thanks for opening an issue.
The issue was fixed in #964 by adding a custom section in the compose file so the user can set the preferred value for --in-pod.
@schugabe, @camporter this PR should also fix your errors (set --in-pod to False in your compose file when you want to use --userns).
@p12tic the problem can be closed.

@p12tic p12tic closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants