Sign inSign up

carbonsphere/docker-mysql-phpmyadmin

By carbonsphere

Updated almost 11 years ago

Image
0

374

carbonsphere/docker-mysql-phpmyadmin repository overview

Author : CarbonSphere
Email : [email protected]

Dockerfile for building docker image. This Base image is based on carbonsphere/docker-centos6-php-nginx

This image provides a MySQL DB on port 3306 and PHPMyAdmin on port 80. It also has a createUserDb.sh to help create a new user granted access to new db.
Steps for creating image from Dockerfile and running procedure:

1 : Clone Docker-Mysql-PHPMyAdmin.git

Command: 
git clone https://github.com/carbonsphere/docker-mysql-phpmyadmin.git

2 : Build docker image from Dockerfile

Command: 
#Change Directory
cd Docker-Mysql-PHPMyAdmin

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

3 : Run image

Command: 
sudo docker run -d -P youraccount/docker-mysql-phpmyadmin 

4 : Run image

Command: 
sudo docker run -d -P --name db youraccount/docker-mysql-phpmyadmin 

#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 db"

Tag summary

Content type

Image

Digest

sha256:7d6e4fc32

Size

165.1 MB

Last updated

almost 11 years ago

docker pull carbonsphere/docker-mysql-phpmyadmin