Build MySQL Docker container image

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 First, get the MySQL image docker pull mysql You'll need to set up your credentials and specify path for MySQL docker run -d --name=mysql1 -e MYSQL_ROOT_PASSWORD=’mypassword’ -v /storage/mysql1/mysql-datadir:/var/lib/mysql mysql docker run -d --name=mysql2 -e MYSQL_ROOT_PASSWORD=’mypassword’