WebDAV docker container
Docker image with WebDAV configured using lighttpd. Exports /site/input volume,
so you can use that to provide remotely accessible directory for other container.
docker run -d -p 80:80 --name my_webdav mprasil/webdav
This will run webdav server with username/password "user" so not very secure.
You can provide your own htpasswd file:
docker run -d -p 80:80 -v /path/to/htpasswd:/site/htpasswd:ro --name my_webdav mprasil/webdav
You can obviously attach local directory to be shared/accessible via webdav
docker run -d -p 80:80 -v /local/dir/:/site/input/ -v /path/to/htpasswd:/site/htpasswd:ro --name my_webdav mprasil/webdav
Building your own:
In the dir with Dockerfile:
docker build -t mywebdav .
Hi mprasil; your image works great! Any ideas how to rix ownerships of the files created by a webdav client? They're all 33:33 which kinda sucks as I bind-mount a volume from my ZFS NAS into the container :)
This is meant to be webdav server only, so there's no web server functionality configured. My use case is that the files are actually served by another container (using
--volumes-from) that is configured as proper webserver. This way I get some isolation between administrative access and frontend. Hope that makes sense.
Yep, when I use it through the file browser it works. Any chance to make it work with a web browser?
Hi coconut, what client are you using? Looks like you're trying to access it using web browser. Not 100% sure about Linux Mint, but I think you should be able to go to your file browser and go File -> Connect to server put dav://IP:PORT/
For some clients you need to put "webdav" instead of "dav", but other than that is should be working fine.
Hi! your docker image is very interesting, however I can't ever get it to run, even in the most basic configuration (docker run -d -p 80:80 --name my_webdav mprasil/webdav). I am using Linux Mint 17.
When I run it, it does the user/password checking correctly but then it serves a 404 error page. Any ideas?