docker kill container not working 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>