Skip to content

Squattydent/Docker-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-Example

Apache 2.4.18 + PHP 5.6.31 (Tester at Ubuntu 16.04.3)

Build

docker build -t lippep/php5.6:latest .

Running a container

docker run -d \
	-p 80:80 \
	-h 'my.domain.com' \
	-v folder-to-www:/var/www/html \
	-v folder-to-vhosts:/etc/apache2/sites-enabled \
	--name any.name.here \
	lippep/php5.6

Windows users

Execute the following command:

docker-machine ls

If no machine was found, we must create one:

docker-machine create --driver virtualbox default

And add the virtual machine envs to Windows:

FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO %i

About

Apache 2.4.18 + PHP 5.6.31 (Tester at Ubuntu 16.04.3)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published