Docker.github.io: Get started needs to tell you to run docker swarm init upfront

Created on 21 Apr 2017  路  2Comments  路  Source: docker/docker.github.io

At: https://docs.docker.com/get-started/part3/#docker-composeyml

I installed fresh Ubuntu 16.04.2 and installed docker-ce using instructions Docker version 17.03.1-ce, build c6d412e

After creating the yml file, I get error when trying to follow instructions:

# docker stack deploy -c docker-compose.yml getstartedlab
This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
#

Most helpful comment

I claim thee

All 2 comments

Right below the deployment instructions, it says that if you see an error like that, you should run

docker swarm init
docker stack deploy -c docker-compose.yml getstartedlab

If you want to use docker stack you'll always have to run the docker swarm init command first, so that getting started should tell you that upfront.
I've updated the issue title to make that clear.

I claim thee

Was this page helpful?
0 / 5 - 0 ratings