Skip to content

carbonsphere/docker-centos6-php-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Author : CarbonSphere
Email : carbonsphere@gmail.com

Dockerfile for building docker image. This Base image is based on CentOS6 with LEMP services (Nginx,PHP-FPM)

Steps for creating image from Dockerfile and running procedure:

1 : Clone docker-centos6-php-nginx.git

Command: 
git clone https://github.com/carbonsphere/docker-centos6-php-nginx.git

2 : Build docker image from Dockerfile

Command: 
#Change Directory
cd CentOS6-PHP-Nginx

#Build Image
sudo docker build -t #YOUR_IMAGE_NAME# .
#ex:  sudo docker build -t youraccount/centos6_php_nginx .

3 : Run image

Command: 
sudo docker run -d -P youraccount/centos6_php_nginx 

4 : Run image

Command: 
sudo docker run -d -P --name web youraccount/centos6_php_nginx 

#docker_daemon_ip#:#image_port#
docker_daemon_ip can be found using "boot2docker ip" or you can check your environment variable "echo $DOCKER_HOST"
image_port can be found using "docker port web"

About

Base image for LEMP service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors