Last active
September 26, 2015 16:55
-
-
Save djmaze/e925401c91c9fa107dd1 to your computer and use it in GitHub Desktop.
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
# Swarm auf dem Manager-Node erstellen | |
docker run --rm swarm create | |
# Token kopieren! | |
# Swarm manager auf Manager-Node starten (Port 2380) | |
docker run -d -p 2380:2375 swarm manage token://xxxxxxxx | |
# Auf den einzelnen Nodes: Swarm-Agents starten | |
docker run -d swarm join --addr=<Node private DNS>:2375 token://xxxxxx |
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
# Beispiel zum Starten eines Containers | |
# Auf dem Manager-Node: | |
docker -H tcp://localhost:2380 run -it --rm armhfbuild/alpine:3.1 sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment