Skip to content

Instantly share code, notes, and snippets.

@kimh
Last active January 4, 2016 03:19
Show Gist options
  • Save kimh/8560964 to your computer and use it in GitHub Desktop.
Save kimh/8560964 to your computer and use it in GitHub Desktop.
What winch promisses - bring true portability - no copy and paste hashed id
Interface
$ winch setup
-> where to push?
-> where is docker?
$ winch up podbot.container
* start container
$ winch down podbot
* stop container
$ winch bootstrap podbot
-> podbot
Dockerfile
up
down
hooks
up
down
$ winch build podbot
-> podbot.container
$ winch push podbot
$ winch update podbot
$ winch containers
* show running containers
$ winch list
UP Shell Example
docker run -v w(vol):/var/lib/podbot -h w(hostname) -d w(name) bash /opt/startup.sh
Hooks
1.change_iptables
2.notify_monitoirng
1.change_iptables
w(container.name)
$container.ipaddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment