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') |
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/env python | |
# Script to run dynamic dns for docker containers. | |
# DNS is served by dnsmasq running on the docker0 gateway ip, and dynamically | |
# updated at containers come and go. | |
# | |
# To use from docker, just provide the --dns option: | |
# docker run --dns <gateway> ... | |
# The gateway ip you need will be printed when this script is run. |