Stopping a linux container on Windows 2019 server takes a few minutes – is it normal?

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:

–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 19.03.5, build 2ee0c57608
  • OS Name: Microsoft Windows Server 2019 Datacenter
  • Version: 10.0.17763 Build 17763


Source: StackOverflow