Skip to content

Instantly share code, notes, and snippets.


David Bremner DrMavenRebe

  • Chicago
View GitHub Profile
JQPATH=$(which jq)
if [ "x$JQPATH" == "x" ]; then
echo "Couldn't find jq executable." 1>&2
exit 2
set -eu
shopt -s nullglob
DrMavenRebe /
Last active Jan 26, 2016
Remove unlinked space from the docker drive
#!/usr/bin/env python
Check all existing Docker containers for their mapped paths, and then purge any
zombie directories in docker's volumes directory which don't correspond to an
existing container.
Taken from:
import logging
import os