tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
197 stars 109 forks source link

It create the container but it not create the /www directory on powershell #21

Closed sachabarragan closed 3 years ago

sachabarragan commented 4 years ago

Hi, i'm new using docker and my first work is whit this Docker image.

I'm having the problem that when i run the comand to create the container whit powershell or the cms (I'm using Windows 10 enterprise), this is created but doesn't create the shared folder.

Only for try it i run the comand con Git Bash and from there the folder appear.

Xampp run well, i can create the data base and use SQL.

I already try to deactivate de windows firewall, i try to search in the tree but it still invisble, the folder never get created.

Do you have any idea where can be my error? I try from another computer, but have the same result.

The steps that i follow

  1. Make the pull from Git Bash
  2. Open Powershell from windows and type: docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/web_folder:/www tomsik68/xampp

In the dashboard of Docker, in the container "myXampp", in the part of Mouts -> /www only show me the dir "/web_folder". Whit any another caracter.

When i do it on Git Bash, Docker ask me if i want to create the shared folder and when i click "yes" it appear on C:\Users\me\web_folder

Please! I need help. Any idea can work

* Docker dashboard of the container created on Powershell Environment PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

DEBIAN_FRONTEND noninteractive

Mounts /WWW /web_folder

/VAR/LOG/APACHE2 /var/lib/docker/volumes/c35240f556a4d3b00eeceb49efdf04da22d033d2c791b20d616a5fd654d4de97/_data

/VAR/LOG/MYSQL /var/lib/docker/volumes/dc42ec466d1b64decc2a012fbee52237ed98efdf54fb0b9578f4e212cfe2af50/_data


tomsik68 commented 4 years ago

Hi, I have one idea what might be wrong. This command you use to start docker: docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/web_folder:/www tomsik68/xampp doesn't work correctly in powershell. Windows powershell can't recognize the path ~/web_folder. You should use something like -v C:\Users\me\web_folder:/www instead. I think you don't need to change the rest of the command. Let me know if this works!

tomsik68 commented 3 years ago

I'm closing this issue since it received no activity in a long time. Should this issue be up-to-date, feel free to re-open it. Thank you.