Vaccano
Vaccano

Reputation: 82437

Is there a way to kill a docker container that hangs for "stop" and "kill"?

I have a docker container that when I call:

docker container stop wcfservicesample

or

docker container kill wcfservicesample

It just "hangs". (Meaning the powershell command never returns.)

Is there some way to kill a container that is more forceful than "kill"?

Upvotes: 2

Views: 3041

Answers (1)

Vadim
Vadim

Reputation: 21

Maybe itis too late, but What helped me under ubuntu linux was:

sudo systemctl restart docker && docker rm -f <<container_id>> ...

I dont know why it do work only on docker restart/

Upvotes: 1

Related Questions