In this blog, we will explore databases on containers. We will use Docker as a container engine tool and Percona Server for MySQL as a database administration tool. Both are open source tools.
MySQL is a relational database management system that stores data on disk. Percona Server for MySQL is a fork of MYSQL, providing much more advanced features. To run it correctly, we need to know volumes because we want to “persist” the data, the most important thing in databases.
Running a single Percona Server for MySQL container
First, let’s create a container without volumes:
Figure 1: From Percona Server for MySQL image to a running container in Docker
The following command will create a container called percona-server-1, where we can create databases and add some data.
…[Read more]