Sign inSign up

carbonsphere/dock-phpmyadmin

By carbonsphere

Updated almost 9 years ago

A free MySQL web administration container

Image
1

295

carbonsphere/dock-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 PHPMyAdmin Application which can be linked with a DB container for Web UI management. Default Web port 80.
Steps for creating image from Dockerfile and running procedure:

1 : Clone dock-phpmyadmin.git

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

2 : Build docker image from Dockerfile

Command: 
#Change Directory
cd dock-phpmyadmin

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

3 : Run image

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

4 : Run image

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

#Example of linking with DB Container
#docker run -d --name db10 carbonsphere/dock-mysql
#docker run -d -p 8081:80 --name web --link db10:db10 -e DBNAME=DB10 carbonsphere/dock-phpmyadmin
#Default MySQL username/password carbon/carbon please refer to carbonsphere/dock-mysql

#Example of using this container as standalone DB manager to a remote host without having a local db link container.
#Default db link host name is "DB" --  default DBNAME=DB
#use add-host option. EX:
#docker run -d -p 8081:80 --name phpmyadmin --add-host DB:192.168.0.100 carbonsphere/dock-phpmyadmin

Tag summary

Content type

Image

Digest

sha256:221748c26

Size

152.7 MB

Last updated

almost 9 years ago

docker pull carbonsphere/dock-phpmyadmin