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'm using the ContainerCollection.run() method to run containers with the SDK but when the container fails to start (due to wrong parameters or misconfiguration on the Docker Desktop) I can't remove the dangling container since it is not returned to the user when the container.start() call raises an APIError nor is removed if I set the remove flag to True.
I would be able to have this container removed if I set the remove flag to True and/or have the container reference returned to the user, enclosed within an exception might be an option.
I'm using the
ContainerCollection.run()
method to run containers with the SDK but when the container fails to start (due to wrong parameters or misconfiguration on the Docker Desktop) I can't remove the dangling container since it is not returned to the user when thecontainer.start()
call raises anAPIError
nor is removed if I set theremove
flag toTrue
.docker-py/docker/models/containers.py
Line 883 in a365202
I would be able to have this container removed if I set the
remove
flag toTrue
and/or have the container reference returned to the user, enclosed within an exception might be an option.The text was updated successfully, but these errors were encountered: