Skip to content
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

Building wordpress/centos7 fails because /var/www/html does not exist #10

Open
jbrains opened this issue Oct 12, 2014 · 2 comments
Open

Comments

@jbrains
Copy link

jbrains commented Oct 12, 2014

I'm a Docker idiot, so forgive me. I'm just trying to follow the README for wordpress/centos7.

I'm working on Mac OS 10.9.5 and using docker 1.2.0/fa7b24f with boot2docker 1.2.0/a551732.

I do this:

mymac $ boot2docker ssh
docker@boot2docker $ cd /home/docker/CentOS-Dockerfiles/wordpress/centos7
docker@boot2docker $ sudo docker build -rm -t jbrains/wordpress:centos7 .

and it eventually fails like this:

Step 11 : RUN mv /wordpress/* /var/www/html/.
 ---> Running in 46fe5f389322
mv: target '/var/www/html/.' is not a directory
2014/10/11 02:28:44 The command [/bin/sh -c mv /wordpress/* /var/www/html/.] returned a non-zero code: 1

I poked around and found that /var/www doesn't exist, let alone /var/www/html.

I have no idea. Thanks.

@jbrains
Copy link
Author

jbrains commented Oct 12, 2014

If I add

RUN mkdir -p /var/www/html

at the appropriate point, then I get stuck on the same problem as in #11

I have no idea. Thanks.

@jperrin
Copy link
Collaborator

jperrin commented Oct 13, 2014

On CentOS-7 the httpd package requires additional privileges not in boot2docker by default. For docker 1.2 and newer, you should be able to to do --cap-add=SET_FILE, otherwise you'd have to run it as privileged. I've fixed the c6 wordpress package which should be just fine for you now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants