Skip to content

Instantly share code, notes, and snippets.

@sgarciav
Created July 18, 2022 13:59
Show Gist options
  • Save sgarciav/4fd5bc63f95a502b0bc58f103a543eec to your computer and use it in GitHub Desktop.
Save sgarciav/4fd5bc63f95a502b0bc58f103a543eec to your computer and use it in GitHub Desktop.

About

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.

  1. Stop the docker daemon ($ sudo systemctl stop docker.socket)
  2. Remove the remaining container files ($ sudo rm -rf /var/lib/docker/containers/[FULL CONTAINER ID])
  3. Start the docker daemon ($ sudo systemctl restart docker.socket).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment