Public | Automated Build

Last pushed: a month ago
Short Description
Docker image with WebDAV configured using
Full Description

WebDAV docker container

Docker image with WebDAV configured using . Exports /site/dav volume, so you can use that to provide remotely accessible directory for other container.


 docker run -it -p 80:80 blekinge/apache_webdav


This will run webdav server without authentification so not very secure.

This image does not work well with user namespaces, a new feature in docker. The fundamental problem is that the apache user MUST NOT BE ROOT. But with user namespaces you can make a guest user root and have him map to a non-root host user.
So, start it with the param


If you specify a local volume, you can (must) specify the user and group of the apache server, so it can read and write with the right permissions. This is a quick and easy way to do it

-v $PWD/tmp:/site/dav -u $(id -u):$(id -g)

This gives this combined start line

docker run -it -v $PWD/tmp:/site/dav -p 80:80 --userns=host -u $(id -u):$(id -g) blekinge/apache_webdav

Building your own:

In the dir with Dockerfile:

docker build -t apache_webdav .
Docker Pull Command
Source Repository