【发布时间】:2017-07-24 11:51:27
【问题描述】:
文件树:
├── docker-compose.yml
├── Dockerfile
└── www
└── index.html
Docker 文件:
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/
尝试启动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
在浏览器http://localhost403页面中
怎么了?
【问题讨论】:
标签: php docker docker-compose