Public | Automated Build

Last pushed: a month ago
Short Description
Docker container for sharing files between containers
Full Description

Docker uwegerdes/data

At the moment this data container shares the directory /var/www/htdocs.

This directory is used by my docker images uwegerdes/php-fpm and uwegerdes/nginx.


Build the image with (mind the dot):

$ docker build -t uwegerdes/data .


Make sure you have a htdocs directory in your current folder ($(pwd)/htdocs) or supply the absolute (not relative!) path to your desired web root:

$ docker run \
    -v $(pwd)/htdocs:/var/www/htdocs \
    --name data \

The command will create a container and exit. That is ok because only the volumes from the container will be used.

Docker Pull Command
Source Repository