docker cannot kill container is not running code example
Example: can't kill docker container
$ sudo systemctl restart docker.socket docker.service
$ docker rm <container id>
$ sudo systemctl restart docker.socket docker.service
$ docker rm <container id>