Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

ontouchstart/mysql

A fork of docker official mysql repo (github)

How to use this image reference

  • start a mysql instance
[docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d ontouchstart/mysql

This image includes EXPOSE 3306 (the mysql port), so standard container linking will make it automatically available to the linked containers (as the following examples illustrate).

  • connect to it from an application
docker run --name some-app --link some-mysql:mysql -d application-that-uses-mysql

or via mysql

docker run -it --link some-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
Docker Pull Command
Owner
ontouchstart
Source Repository

Comments (0)