Sometimes a Docker container can get stuck in the "Removal in progress" status. If and when this happens it just hangs forever. Running docker rm -f
doesn't work. The following set of instructions is a good workaround.
- Stop the docker daemon (
$ sudo systemctl stop docker.socket
) - Remove the remaining container files (
$ sudo rm -rf /var/lib/docker/containers/[FULL CONTAINER ID]
) - Start the docker daemon (
$ sudo systemctl restart docker.socket
).