Sign inSign up

carbonsphere/docker-centos6-php-nginx

By carbonsphere

Updated over 11 years ago

Image
0

323

carbonsphere/docker-centos6-php-nginx repository overview

Author : CarbonSphere
Email : [email protected]

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"

Tag summary

Content type

Image

Digest

sha256:69a4a69c2

Size

125.2 MB

Last updated

over 11 years ago

docker pull carbonsphere/docker-centos6-php-nginx