Public Repository

Last pushed: 2 years ago
Short Description
Docker ---- Ubuntu - SSH + Apahce + Mysql Server with Phpmyadmin
Full Description

Docker - SSH + mysql server + phpmyadmin :-

$ docker pull cloudsenthil/mysql-phpmyadmin

$ docker run -d -p 49160:22 -p 49161:80 -p 49162:3306 cloudsenthil/mysql-phpmyadmin

Go to Browser :-

http://localhost:49161/phpmyadmin/ - Username root & admin no password.

SSH :-

$ ssh root@localhost -p 49160
password : admin


Mounting the Volumes database :-

$ docker run -d -p 49160:22 -p 49161:80 -p 49162:3306 cloudsenthil/mysql-phpmyadmin

$ docker run -d -v /home/senthil/path/mysql/data:/var/lib/mysql cloudsenthil/mysql-phpmyadmin /bin/bash -c "/usr/bin/mysql_install_db"

$ docker run -d -p 49160:22 -p 49161:80 -p 49162:3306 -v /home/senthil/path/mysql/data:/var/lib/mysql mysqlinstance2 cloudsenthil/mysql-phpmyadmin

$ docker logs <ContainerID>
Suppose could start apache login to ssh then start the daemon
$ ssh root@localhost -p 49160
root@localhost# /etc/init.d/apache2 start

Go to Browser :-

http://localhost:49161/phpmyadmin/ - Username root & admin no password.

Docker Pull Command
Owner
cloudsenthil

Comments (0)