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?

1 Answer 1


You need to

  1. Expose the server port in the Dockerfile
  2. 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
  3. Set the connection in the mysqlphpadmin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.