Public Repository

Last pushed: 21 days ago
Short Description
Scalingo MySQL Image
Full Description

Running the image

This image contains mysql. To start the image, you can run the following snippet:

docker run -it -p 3306:3306 \
           -v <DATA_DIRECTORY>:/var/lib/mysql \
           scalingo/mongo /mysql

You database is now up and running on the port 3306 of your host.


  • <DATA_DIRECTORY>: directory used to store database data.


  • DB_USER (Optional, default: mysql): username used for database authentication.
  • DB_PASSWORD (Optional, default: secret): password used for database authentication.
  • DB_ADMIN_PASSWORD (Optional: default: admin-secret): password used for the admin account.

  • DB_UID (Optional, default: 1503): user UID that mysql should use to store data and run itself. You can set it to your own UID to have a simpler dev environment. Just add -e DB_UID=`id -u` before the -v flag.


A database with the same name as $DB_USER will be created, the user
$DB_USER will be available to connect to it.

The admin user is named root and can access any database with the password
defined in $DB_ADMIN_PASSWORD and create new databases also.

Startup logs

Normal startup logs are :

 160613  8:11:14 [Note] Server hostname (bind-address): ''; port: 3306
 160613  8:11:14 [Note]   - '' resolves to '';
 160613  8:11:14 [Note] Server socket created on IP: ''.
 160613  8:11:14 [Warning] 'user' entry 'root@fff5562e8198' ignored in --skip-name-resolve mode.
 160613  8:11:14 [Warning] 'proxies_priv' entry '@ root@fff5562e8198' ignored in --skip-name-resolve mode.
 160613  8:11:14 [Note] Event Scheduler: Loaded 0 events
 160613  8:11:14 [Note] mysqld: ready for connections.
 Version: '5.5.49-0ubuntu0.14.04.1-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
Docker Pull Command