Docker файл выглядит следующим образом:
FROM php:7.2-apache
COPY src/ /var/www/html/
EXPOSE 80
Ран docker команды:
docker build -t hello-world .
docker run -p 80:80 hello-world
Структура проекта:
projectRoot
Dockerfile
src/index.html
Что вызывает в моем разрешении отказано http://localhost: 80
172.17.0.1 - - [08/Apr/2020:19:05:00 +0000] "GET / HTTP/1.1" 403 490 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
172.17.0.1 - - [08/Apr/2020:19:05:00 +0000] "GET / HTTP/1.1" 403 490 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
[Wed Apr 08 19:05:00.837027 2020] [autoindex:error] [pid 17] [client 172.17.0.1:40036] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
[Wed Apr 08 19:05:00.894055 2020] [autoindex:error] [pid 17] [client 172.17.0.1:40036] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive