Last active
January 4, 2016 03:19
-
-
Save kimh/8560964 to your computer and use it in GitHub Desktop.
What winch promisses - bring true portability - no copy and paste hashed id
This file contains 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
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