Docker.github.io: Additional property {property} is not allowed

Created on 21 Aug 2017  路  4Comments  路  Source: docker/docker.github.io

File: get-started/part3.md, CC @johndmulhausen
When following the example to the letter, receiving the aforementioned error when running docker stack deploy command

Env. details: Latest docker + docker-compose as of this writing, Ubuntu Server 16.04 LTS. Not root, 'sudo' everywhere.

image

Thanks in advance.

Most helpful comment

Check indentation. In the original screenshot, ports and networks property are defined under deploy. They should be properties under web

All 4 comments

Instead of an image, can you paste here your getstartedlab file?
Check here how to paste code blocks

@AlexOQ You should set an empty line before services and networks like this:
image

I think the docs are fine here, so closing this. Hope the comments were helpful in debugging the issue for you. :)

Check indentation. In the original screenshot, ports and networks property are defined under deploy. They should be properties under web

Was this page helpful?
0 / 5 - 0 ratings