

Deploying a container named devops-phpmyadmin.The output terminal is as below: docker run -name devops-phpmyadmin -v phpmyadmin-volume:/etc/phpmyadmin/ -link devops_mysql:db -p 82:80 -d docker ps | grep devops-phpmyadminī505829b2356 phpmyadmin/phpmyadmin "/docker-entrypoint.…" 12 seconds ago Up 11 seconds 0.0.0.0:82->80/tcp, :::82->80/tcp The explanation of the above command The output terminal is as below: docker volume create docker volume ls | grep phpmyadmin-volumeĭeploy the phpMyAdmin container with the command: docker run -name devops-phpmyadmin -v phpmyadmin-volume:/etc/phpmyadmin/ -link devops_mysql:db -p 82:80 -d phpmyadmin/phpmyadmin Create a volume for phpMyAdmin with the command line as below docker volume create phpmyadmin-volume Status: Downloaded newer image for docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĨb5a319d3cda mysql/mysql-server "/entrypoint.sh mysq…" 16 seconds ago Up 14 seconds (health: starting) 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060-33061/tcp devops_mysql Deploy the phpMyAdmin Container The output terminal as below docker run -name=devops_mysql -p3306:3306 -v mysql-volume:/var/lib/mysql -e -d mysql/mysql-server Local cb6583b8ad3d474f06e6c8fef30f5d4d11cb1a51e69ca0cc5d2df15a9deae1c3Īfter our volume ready, we will deploy the MySQL container with named is devops_mysql and connect it to the volume with the command below: docker run -name=devops_mysql -p3306:3306 -v mysql-volume:/var/lib/mysql -e -d mysql/mysql-server The output terminal is as below: docker volume create docker volume ls I will create a volume name is mysql-volume with the command below: docker volume create mysql-volume Prerequisites Docker deploy MySQL and phpMyAdminįirst I will create a volume for MySQL to remain persistent. MySQLDatabase Service is a fully managed database service to deploy cloud-native applications.
#Docker phpmyadmin access to mysql host software
Docker is a software platform designed to make it easier to create, deploy, and run applications by using containers.
