Skip to content

UweGerdes/docker-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 in my frontend-development project.

Build

Build the image with (mind the dot):

$ docker build -t uwegerdes/data .

Usage

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 \
	uwegerdes/data

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

About

Docker container for sharing files between containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published