-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
engine.detach_keys is not used correctly with podman compose #22756
Comments
I was trying to debug this and could not reproduce the issue. However, I'm wondering if it has to do with the specific config file that you modified in the first step. Looking at the docs in
It mentions that the file you modified in your first step (~/.config/containers/containers.conf) only applies to rootless mode containers. I'm wondering if the If you take that settings provided and put the config changes in one of the global config files, do you still see this issue? |
Ah! I think I just had to restart the podman socket daemon... Now after a reboot, I don't reproduce anymore |
Maybe it is unrelated to this ticket, but I still see a difference in the behavior between podman compose and podman run contexts. With podman run: there is no With podman compose run: there is still a The following paste show first a [stacy@yellow-orcess ~/tmp]$ podman compose run --rm foo sh
>>>> Executing external compose provider "/usr/bin/docker-compose". Please refer to the documentation for details. <<<<
/ # ERRO[0002] error waiting for container: context canceled
[stacy@yellow-orcess ~/tmp]$ podman compose run --rm foo sh
>>>> Executing external compose provider "/usr/bin/docker-compose". Please refer to the documentation for details. <<<<
/ # Error: detached from container
pwd
^C[stacy@yellow-orcess ~/tmp]$
`` |
The containers.conf files are onlly read at podman start, in one case you have a podman running locally which reads the containers.conf, In the podman compose case you are talking to the podman service which could have been running before the containers.conf was set? You can eliminate the podman compose part and just do podman --remote run ... And see if the detach keys work properly, after service restart. |
A friendly reminder that this issue had no activity for 30 days. |
Issue Description
containers started with "podman compose run" are not using my configured detach_keys
Steps to reproduce the issue
Put this in
.config/containers/containers.conf
:Run a container
podman run --rm -it alpine sh
, and use<ctrl-x>,x
, it detach the container.Now, prepare this
docker-compose.yml
:And run the container with
podman compose run --rm foo sh
, and try to<ctrl-x>,x
, it does not detach.Describe the results you received
The container still use the default detach value
<C-p><C-q>
Describe the results you expected
podman compose should wrap all kind of docker-compose arguments with its configured values
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
I'm on alpine linux, using all of those packages:
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: