"volumes must be a mapping" while trying to deploy this file
See original GitHub issueFollowed the procedure at (https://docs.docker.com/engine/getstarted-voting-app/node-setup/#interacting-with-the-machines), copy and pasted the file in the right directory of the manager.
When i launch docker stack deploy --compose-file docker-stack.yml vote
i get volumes must be a mapping"
I’m working on Ubuntu 16.10, i tried also with Windows and it works fine.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Ask Question
ERROR: In file './docker-compose.yml', service 'volumes' must be a mapping not an array · Add two spaces before "- /usr/certs:/certs". – olegsv.
Read more >Why does my Docker composer not work with volume?
In file '. \ docker-compose.yml', service 'volumes' must be a mapping not an array. and so far I didn't ...
Read more >Volume must be a mapping, not an array #5092
The problem is when I try to use the long syntax present in version 3.2. I've searched but not found anything related to...
Read more >Docker compose build error - 'environment must be a ...
I am working in Portainer trying to create a Stack and I have been working through numerous errors that it throws my way…not...
Read more >Docker compose build error - 'services must be a mapping'
I am working in Portainer trying to create a Stack and I have been ... to deploy a stack: services.jellyfin.environment must be a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@londoncalling: Sure! Each line in the file was ending with ^M, which I think always happens if you first save the file in windows and then copy and use it in linux. I could see the ^M at the end of each line, when I opened the docker-stack.yml file using vi command in linux.
Could be a text encoding issue. @Tirocigno can you check that?