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

How can I access /www of the container proFTPd ? #41

Closed alvinhyc closed 2 years ago

alvinhyc commented 2 years ago

Hello,

I'm running Docker on Ubuntu 20.4 LTS. I use the following command to start the container:

docker run --name myXampp -p 41022:22 -p 41080:80 -d -v ~/www:/www tomsik68/xampp

How can I access /www of the container proFTPd ? I use FileZilla to connect to proFTPd (id:daemon pwd:xampp), but I can't see /www, only other non-symlinked folders. I want to upload files to my webserver via FileZilla

Thank you!

tomsik68 commented 2 years ago

Hey, judging from the command you use to start the container, you should be able to copy files without using proFTPd. If you place a file into ~/www, the container will have the same file in /www because of the mount.

tomsik68 commented 2 years ago

Closing for inactivity, feel free to re-open if there are any further questions.