HiveBrain v1.2.0
Get Started
← Back to all entries
patterndockerMinor

phpMyAdmin using dockerised database

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
phpmyadmindatabaseusingdockerised

Problem

I have installed mariadb inside docker container, and mariadb is running properly inside that container. I want to get access of mariadb through phpMyAdmin from outside docker container.

What will I have to do for that?

Solution

You need to

  • Expose the server port in the Dockerfile



  • get the IP that the container is listening on (e.g. docker inspect code-rade_cache_1 |jq .[0].NetworkSettings.Networks[].IPAddress ) -- note that you will need JQ installed on your computer to do this



  • Set the connection in the mysqlphpadmin

Context

StackExchange DevOps Q#5485, answer score: 1

Revisions (0)

No revisions yet.