On a windows 2019 server vm I ran this command:
docker run -d --name webA nginx:latest
docker stop -t 5 webA
The stop command took roughly 5 minutes to finish. The
docker kill command is almost immediate.
Is it normal? I would have expected a few seconds, let’s say somewhere between 5 and 30 seconds but not 5 minutes. Starting the containers is very quick.
Also according to the docs: https://docs.docker.com/engine/reference/commandline/stop/:
–time , -t 10 Seconds to wait for stop before killing it
That’s not what’s happening, otherwise after 5 seconds the container should have been killed immediately.
- Docker version
- OS Name:
Microsoft Windows Server 2019 Datacenter
10.0.17763 Build 17763