Skip to content

Instantly share code, notes, and snippets.

@mishak87
Last active April 20, 2016 11:56
Show Gist options
  • Save mishak87/d1a9f55d1b3ea07551d8 to your computer and use it in GitHub Desktop.
Save mishak87/d1a9f55d1b3ea07551d8 to your computer and use it in GitHub Desktop.
Docker Daily

Tools and tips that make my day better.

Holy Trinity for debugging

export TERM=xterm
apt-get update -yq && apt-get install -yq mc vim htop

DVC all the way

# dvc <name> <volume> <rights> <user> <group>
dvc () { docker run -v "$2" --name "$1" sheldonh/dvc "$2:$3:$4:$5"; }
containers:
# Proxy makes all services available on single HTTP port so you can map all
# hostnames to localhost ie.: 127.0.0.1
# If you are working on multiple projects you will need just one instance
proxy:
image: jwilder/nginx-proxy
run:
detach: true
publish:
- 80:80
volume:
- /var/run/docker.sock:/tmp/docker.sock
# Apt handles caching of packages so sequential runs are faster and uses
# less bandwidth
apt-cache-ng:
image: apt-cacher-ng
run:
detach: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment