Files tree:
├── docker-compose.yml
├── Dockerfile
└── www
└── index.html
Dockerfile :
FROM php:5.6-apache
ADD ./www /var/www/html/
WORKDIR /var/www/html/
docker-compose.yml
version: '2'
services:
php5_6:
build: .
ports :
- "80:80"
volumes:
- ./www:/var/www/html/
Try to start docker
$ docker-compose up
[core:error] [pid 17] (13)Permission denied: [client 172.19.0.1:53514] AH00035: access to /index.html denied (filesystem path '/var/www/html/index.html') because search permissions are missing on a component of the path
In browser http://localhost 403 page
What's wrong?