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
Description
Docker API attach endpoint allows us to attach to stopped containers. That is great when you want to ensure that you get all std stream right from when the container is started. However, there is a problem, if you attach to a stopped container that you destroy without starting again.
Steps to reproduce the issue:
Create a container: docker create --name testcontainer alpine:latest
Description
Docker API attach endpoint allows us to attach to stopped containers. That is great when you want to ensure that you get all std stream right from when the container is started. However, there is a problem, if you attach to a stopped container that you destroy without starting again.
Steps to reproduce the issue:
docker create --name testcontainer alpine:latest
curl -d stream=true -d stdout=true --unix-socket /var/run/docker.sock http://localhost/containers/testcontainer/attach
docker rm testcontainer
Describe the results you received:
The attach stream is kept connected even though the container was removed, so it cannot ever get started.
Describe the results you expected:
I expected the attach stream to get destroyed since the container was removed.
Additional information you deem important (e.g. issue happens only occasionally):
It makes no difference if container had ever ran before.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Virtualbox
The text was updated successfully, but these errors were encountered: