Support for turning off --interactive
flag for podman-compose exec
command
#900
Labels
enhancement
New feature or request
--interactive
flag for podman-compose exec
command
#900
Is your feature request related to a problem? Please describe.
When using podman-compose to exec into a container, the resulting podman exec command always has the
--interactive
flag appended (code ref).Currently, I'm attempting to use this in a timeout loop in a Makefile - essentially waiting until a certain command run in a container returns successfully. When
--interactive
is specified, the loop hangs (since stdin stays open) until the timeout triggers. If I use podman exec directly, non-interactively, the command succeeds.Describe the solution you'd like
In docker-compose, you can specify
docker-compose exec -i=false
to turn off the default interactive flag (this flag is marked as hidden, see code reference here). Ideally I'd like to add a similar flag (does not need to be hidden I don't think) to podman-compose exec to allow disabling interactive mode.Describe alternatives you've considered
I've tried using podman exec directly for this use case. However, I've found no deterministic way to retrieve the container name. Some of our team uses podman and some use docker - the naming schemes for how to append the compose project name to the container name differ, and I've found no way in podman-compose to return a container name given a service name.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: