Connecting in to Docker MySQL Instance

Just recording a few of these steps for future reference.

Pull the MySQL image from the hub:

Run an instance:

Run a shell on the instance:

Once inside the instance use the MySQL client:

and create a new user:

Quit the MySQL client and exit the instance. From the host system try connecting to MySQL on the instance:

Now that instance of MySQL can be inspected from the host.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">