I am trying to kill (force stop) a MySQL DB container and it is refusing to die:
$ docker kill 55718df7a9d6
Error response from daemon: Cannot kill container: 55718df7a9d6: Container 55718df7a9d6600501bbd248fe0c1ef7da3f970fea84461cbe5f10c70f0cbe22 is not running
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
55718df7a9d6 mysql:8 "docker-entrypoint.s…" 3 minutes ago Restarting (1) 58 seconds ago my-main-db
When I try to kill it:
$ docker stop 55718df7a9d6
55718df7a9d6
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
55718df7a9d6 mysql:8 "docker-entrypoint.s…" 19 minutes ago Restarting (1) 17 minutes ago my-main-db
How can I force this to die and clean up so that docker ps returns no results?
docker stop 55718df7a9d6to remove it since it's not running.