In this article I'm gonna show you how to build MySQL Docker container image. This article assumes that you've some basic knowledge about Docker.

To run MySQL on Docker we would need to do the following

  • Install Docker engine on your computer
  • Download MySQL image from Docker Hub
  • And run the container

1) First, get the MySQL image

docker pull mysql

2) You'll need to set up your credentials and specify path for MySQL

docker run -d --name=mysql1 -e MYSQL_ROOT_PASSWORD=’mypassword’ -v...

Read complete blog post