Docker Toolbox and MySQL

The install of Docker Toolbox is simple 🙂  Unfortunately, either due to late nights, or other, its not clear that you appear to need to start a network to access the Docker instance of MySQL by a Java process running outside of the docker environment.  Hence I found the following from web search solved by project:

  • docker network create mysqlapp_net
  • docker run –name mysqldb –net mysqlapp_net -p 3306:3306 -e MYSQL_USER=mysql -e MYSQL_PASSWORD=mysql -e MYSQL_DATABASE=sample -e MYSQL_ROOT_PASSWORD=supersecret -d mysql

~ by mdavey on May 19, 2016.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: