You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to start/run a container and pass commands consecutively. However, as soon as I run the container, it exits and no other exec_run() commands go through. The specific error message is as follows:
docker.errors.APIError: 409 Client Error for http+docker://localnpipe/v1.43/containers/{id}/exec: Conflict ("Container {id} is not running")
@akanksha-atrey the container will run the command ("echo starting container") and exit as soon as it finishes, so it will not run any other commands, you can try something like command="sleep 9999" to make it hang, allowing you to run other commands, but when the inital command finishes, the container will exit.
This solution might work, put the script that I'm using will stuck on that part also until I terminate it manually with CTRL+C, is there a better alternative?? detach=true doesn't work as expected:
I am trying to start/run a container and pass commands consecutively. However, as soon as I run the container, it exits and no other exec_run() commands go through. The specific error message is as follows:
The code is as follows:
I am running version 6.1.3 on Python 3.11.5.
The text was updated successfully, but these errors were encountered: