AdminerEstimated reading time: 4 minutes
Database management in a single PHP file.
GitHub repo: https://github.com/TimWolla/docker-adminer
Supported tags and respective
For detailed information about the published artifacts of each of the above supported tags (image metadata, transfer size, etc), please see the
repos/adminer directory in the
docker-library/repo-info GitHub repo.
For more information about this image and its history, please see the relevant manifest file (
library/adminer). This image is updated via pull requests to the
docker-library/official-images GitHub repo.
What is Adminer?
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.
How to use this image
$ docker run --link some_database:db -p 8080:8080 adminer
Then you can hit
http://host-ip:8080 in your browser.
If you are already running a FastCGI capable web server you might prefer running adminer via FastCGI:
$ docker run --link some_database:db -p 9000:9000 adminer:fastcgi
Then point your web server to port 9000 of the container.
Note: This exposes the FastCGI socket to the Internet. Make sure to add proper firewall rules or use a private Docker network instead to prevent a direct access.
This image bundles all official adminer plugins. You can find the list of plugins on GitHub: https://github.com/vrana/adminer/tree/master/plugins.
To load plugins you can pass a list of filenames in
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='tables-filter tinymce' adminer
If a plugin requires parameters to work correctly you will need to add a custom file to the container:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='login-servers' adminer Unable to load plugin file "login-servers", because it has required parameters: servers Create a file "/var/www/html/plugins-enabled/login-servers.php" with the following contents to load the plugin: <?php require_once('plugins/login-servers.php'); /** Set supported servers * @param array array($domain) or array($domain => $description) or array($category => array()) * @param string */ return new AdminerLoginServers( $servers = ???, $driver = 'server' );
To load a custom plugin you can add PHP scripts that return the instance of the plugin object to
Choosing a design
The image bundles all the designs that are available in the source package of adminer. You can find the list of designs on GitHub: https://github.com/vrana/adminer/tree/master/designs.
To use a bundled design you can pass its name in
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_DESIGN='nette' adminer
To use a custom design you can add a file called
While Adminer supports a wide range of database drivers this image only supports the following out of the box:
To add support for the other drivers you will need to install the following PHP extensions on top of this image:
- sqlsrv (MS SQL)
- oci8 (Oracle)
- interbase (Firebird)
- mongo (MongoDB)
View license information for the software contained in this image.
Supported Docker versions
This image is officially supported on Docker version 17.04.0-ce.
Support for older versions (down to 1.6) is provided on a best-effort basis.
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.
If you have any problems with or questions about this image, please contact us through a GitHub issue. If the issue is related to a CVE, please check for a
cve-tracker issue on the
official-images repository first.
You can also reach many of the official image maintainers via the
#docker-library IRC channel on Freenode.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.
Documentation for this image is stored in the
adminer/ directory of the
docker-library/docs GitHub repo. Be sure to familiarize yourself with the repository’s
README.md file before attempting a pull request.