Skip to content

Instantly share code, notes, and snippets.

@ProfAvery
Created September 24, 2018 04:06
Show Gist options
  • Save ProfAvery/92c4c1d9287988018b97c421660c179f to your computer and use it in GitHub Desktop.
Save ProfAvery/92c4c1d9287988018b97c421660c179f to your computer and use it in GitHub Desktop.
Try to recover from issues with Labtainers by removing all containers and re-installing.
#!/bin/sh
# In case of Labtainer catastrophe, try this.
# Remove all containers:
for container in $(docker ps --all --quiet)
do
docker rm --force $container
done
# Update Labtainers just in case:
~/labtainer/update-labtainer.sh
# Run the labtainer command again, and hope for the best...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment