Error with PHP
$ docker version
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24302
Built: Fri Mar 23 08:31:36 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.05.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.10.1
Git commit: f150324
Built: Wed May 9 22:20:42 2018
OS/Arch: linux/amd64
Experimental: false
Hi,
I am new to docker and trying it on as a work in my internship course. What i actually tried is to just create a simple php application,its corresponding compose and docker file as explained in this tutorial(https://perchrunway.com/blog/2017-01-19-getting-started-with-docker-for-local-development)
I have my docker file at C:\Program Files\Docker Toolbox\simple-docker\docker\webserver.
My php code at C:\Program Files\Docker Toolbox\simple-docker\www and my compose file at C:\Program Files\Docker Toolbox.Also i have created an empty folder db at C:\Program Files\Docker Toolbox\simple-docker(as instructed in tutorial) this is the snip of the output
The codes are as follows:
#Compose file
version: ‘2’
services:
webserver:
build: C:\Program Files\Docker Toolbox\simple-docker\docker\webserver
image: runwaytest_web
ports:
- “80:80”
- “443:443”
volumes:
- C:/Program Files/Docker Toolbox/simple-docker
links:
- db
db:
image: mysql:5.7
ports:
- “3306:3306”
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=docker
- MYSQL_DATABASE=db_runwaytest
#dockerfile
FROM php:7-apache
#code
<?php echo "Hello world"; ?>When I access browser with dockerip:80 it says “403:Forbidden”.
Please help me through this.I am on it for past 15 days!!