Sign inSign up

noctuary/phpmyadmin

By noctuary

Updated over 3 years ago

phpMyAdmin microcontainer

Image
0

3.5K

noctuary/phpmyadmin repository overview

Docker Image Version (tag latest semver) Image size Docker Pulls

Maintained by Yann Courtaux (Github source repo)

A tiny phpMyAdmin standalone image

The compressed image size is 13 MB.
Once pulled, it will take 42 MB of disk space.

It is more than 10 times smaller than the Docker Official phpmyadmin images (standalone: including Apache web server).

Why is it so small?

One language only: english.
One theme only: pmahome.
GIS visualization removed.
Runs in Alpine Linux.
No extra web server: use the PHP built in web server.

Usage

phpMyAdmin uses db as default MySQL/MariaDB server host name.
Assuming a MySQL or MariaDB server is running in Docker, as a container named db:

docker run --rm --name phpmyadmin -d -p 8080:8080 noctuary/phpmyadmin

If your MySQL or MariaDB container name is not db, you have to alias it to db with the link option:

docker run --rm --name phpmyadmin -d --link mariadb:db -p 8080:8080 noctuary/phpmyadmin

Environment variables

noctuary/phpmyadmin accepts the same environment variables as the phpmyadmin/phpmyadmin Docker Official phpmyadmin images :

  • PMA_ARBITRARY - when set to 1, you will have to specify MySQL/MariaDB server address/host name on login page
  • PMA_HOST - define address/host name of the MySQL server
  • PMA_VERBOSE - define verbose name of the MySQL server
  • PMA_PORT - define port of the MySQL server
  • PMA_HOSTS - define comma separated list of address/host names of the MySQL servers
  • PMA_VERBOSES - define comma separated list of verbose names of the MySQL servers
  • PMA_PORTS - define comma separated list of ports of the MySQL servers
  • PMA_USER and PMA_PASSWORD - define username to use for config authentication method
Usage exemples with environment variables

Auto-login

docker run --rm --name phpmyadmin -p 8080:8080 \
             -e PMA_HOST=mysql \
             -e PMA_USER=testUser \
             -e PMA_PASSWORD=PasSW0rD \
             noctuary/phpmyadmin

In case mysql is a a running container, you can also use:

docker run --rm --name phpmyadmin -p 8080:8080 \
             --link mysql:db \
             -e PMA_USER=testUser \
             -e PMA_PASSWORD=PasSW0rD \
             noctuary/phpmyadmin

When accessing a MySQL/MariaDB external server, the port must be specified if not 3306 (default MySQL/MariaDB port):

docker run --rm --name phpmyadmin -p 8080:8080 \
             -e PMA_HOST=mysql.example.com \
             -e PMA_PORT=3307 \
             -e PMA_USER=testUser \
             -e PMA_PASSWORD=PasSW0rD \
             noctuary/phpmyadmin

Tag summary

Content type

Image

Digest

sha256:f23cc5c21

Size

13.2 MB

Last updated

over 3 years ago

docker pull noctuary/phpmyadmin