Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

run setiseta / docker-php52 #2

Open
StephanKrauss opened this issue Jul 8, 2020 · 1 comment
Open

run setiseta / docker-php52 #2

StephanKrauss opened this issue Jul 8, 2020 · 1 comment

Comments

@StephanKrauss
Copy link

Hello,

I'm a beginner in docker.
U will use setiseta /docker-php52 for a older project.

I work under windows and dockerdesktop.
I will start a container.
My app is under C:/xampp1/htdocs/docker-php52/data/webapp .
I will start the container with;

NAME="php52"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker run -d
-p 80:80
-v $DIR/data/webapp:C:/xampp1/htdocs/docker-php52/data/webapp
--restart=always
--name $NAME
seti/php52


I get a information:
C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon: invalid mode: /xampp1/htdocs/docker-php52/data/webapp.

Can you help ?

Your sincerly

Stephan

@setiseta
Copy link
Owner

setiseta commented Jul 8, 2020

Hello,

On Windows it is always different. So I'm not Sure if it will work at all.
But in your Start command there is an error on the volume mapping.
The left side is the host, the right side is Inside the Container.
So you will need to change it to:
-v C:/xampp1/htdocs/docker-php52/data/webapp:/home/www/webapp
Maybe this helps.

Best Regards
Sebastian

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

No branches or pull requests

2 participants