patterndockerMinor
phpMyAdmin using dockerised database
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?
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.