Provide a PhpMyAdmin container
Links allow Docker containers to discover each other and securely transfer information about MySQL container to phpMyAdmin container.
$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=my_password -d mysql
$ docker run --name phpmyadmin --link mysql:mysql -P creativearea/phpmyadmin
You can also pass MySQL server host through an environment variable:
$ docker run --name phpmyadmin -e MYSQL_SERVER_HOST=mysql -P creativearea/phpmyadmin