Skip to content

Feedback for: compose/wordpress.md #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
still-dreaming-1 opened this issue Oct 8, 2016 · 5 comments
Closed

Feedback for: compose/wordpress.md #129

still-dreaming-1 opened this issue Oct 8, 2016 · 5 comments
Assignees

Comments

@still-dreaming-1
Copy link

still-dreaming-1 commented Oct 8, 2016

URL: https://docs.docker.com/compose/wordpress.md

I got to the docker-compose up -d part, which gives me the error:

ERROR: yaml.parser.ParserError: while parsing a block mapping
in "./docker-compose.yml", line 1, column 1
expected , but found ''
in "./docker-compose.yml", line 2, column 2

I'm on Linux Mint 17.3 64 bit Cinnamon edition. Which is based on Ubuntu 14.04. I started out with no docker anything installed. I have Docker version 1.12.1, build 23cf638. My docker composer version is 1.8.1.

@londoncalling
Copy link
Contributor

londoncalling commented Oct 12, 2016

@still-dreaming-1 @dnephin

Thank you @still-dreaming-1 , I believe the problem is caused by indentation errors (similar to this issue: https://forums.docker.com/t/errors-on-docker-compose-up-parser-error/14747/3). I will update the docs to reflect the right spacing.

Try updating the first few lines of docker-compose.yml to look like this instead (i.e., add a return after the version line, leave all other indentation and spacing the same). Then your docker-compose up -d should work. Let me know if it does.

version: '2'

 services:
   db:
     image: mysql:5.7
     volumes:
       - "./.data/db:/var/lib/mysql"
. . .

@dnephin
Copy link
Contributor

dnephin commented Oct 12, 2016

It looks like the example has an extra space as the first character on each line. version and services should be at the same indentation level.

@londoncalling
Copy link
Contributor

Thanks, @dnephin when I made the correction I provided above, it worked, but I'll also make the corrections you suggest, re-test, and modify the example to reflect the right spacing and indentation.

@londoncalling
Copy link
Contributor

This is fixed now in the docs per PR #359

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker docker locked and limited conversation to collaborators Nov 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants