DockerSwarm: Difference between revisions
Jump to navigation
Jump to search
(Created DockerSwarm simple example) |
(fix syntax for DockerSwarm) |
||
Line 1: | Line 1: | ||
Simple Swarm Example | Simple Swarm Example | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
docker swarm init | docker swarm init | ||
docker network create --driver overlay mynet | docker network create --driver overlay mynet |
Latest revision as of 22:59, 24 January 2018
Simple Swarm Example
docker swarm init
docker network create --driver overlay mynet
docker service create --replicas 3 --name redis --network mynet --update-delay 10s -p 6379:6379 redis:3.0.6
docker network create --driver overlay --attachable redis