This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Instead of having to set DOCKER_HOST or run `$(boot2docker shellinit)` just start this | |
# script in the background. | |
# | |
# Depends on `brew install boot2docker socat` | |
socket=`boot2docker socket 2>/dev/null | sed 's|tcp://||'` | |
exec sudo socat -d -d -ls UNIX-LISTEN:/var/run/docker.sock,fork,mode=0777 TCP4:$socket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import os | |
import shutil | |
import subprocess | |
import re | |
dockerdir = '/var/lib/docker' | |
volumesdir = os.path.join(dockerdir, 'volumes') |