
Explore how Docker containers isolate MySQL by using a downloaded MySQL image from Docker Hub, and run it as a container, and why the Docker engine is required.
Install and configure Docker engine on Amazon Linux 2, enable and start the service, then pull the MySQL image and run it as an isolated container.
Search for and pull the official MySQL image from Docker Hub, then inspect the image to understand layers, tags, and metadata before running it as a container.
Run MySQL as a docker container using the latest image, name the container, set a root password, and run detached on port 3306.
Use docker logs to inspect the MySQL container startup, verify version 8.0.31 and x plugin readiness on ports 33060 and 3306, and understand root password handling.
Access a MySQL 8.0.31 server running in a docker container by using docker exec to open a bash shell on the host and log in as root.
Stop the running MySQL container, remove it (with volumes if needed), then recreate the container with its port exposed to the Docker host for external access.
Learn how a MySQL container exposes its port to the host, mapping container port 3306 to the same host port, and publish it via docker run for external access.
Create a DBA user named Bob in the MySQL container, grant him all DBA privileges, and enable remote login so Bob can connect from a workstation.
Connect to a MySQL container from a remote host by exposing port 3306, log in as Bob, and create an employees database to illustrate containerized databases.
Learn how Docker containers are volatile: if you remove a container, its data disappears unless you attach a persisted volume to the MySQL container.
Bind a local directory as a volume for a Docker container to persist MySQL data by mounting /var/lib/mysql to a host path, preserving employees database and staff table after removal.
Demonstrates persisting MySQL data across container lifecycles by binding a local volume to the container's data directory. Recreates a container that attaches the same volume to access existing data.
Convert a running MySQL instance to a Docker container by binding the existing local volume to the container's /var/lib/mysql and using the same host port.
Stop the MySQL service and run a Docker container with the existing data directory mounted, exposing port 3306. Log in as Bob and access the world database.
Shows how to run MySQL on Docker, pull official images from Docker Hub, create containers, and use persistent volumes to preserve data across containers.
*** MySQL on Docker - Free Course ***
In this course students should learn:
Docker Introduction
What is Docker
How Docker segregate the running containers as a processes
How each Docker process managed by its own control group
Docker Installation
What is difference between Docker Enterprise and Docker Community Edition
How to install Docker Engine
How to verify if Docker Engine is installed and what is the version
How to enable the Docker Service
How to Start and Stop Docker Service
Docker Image
Softwares have their sliced version converted into images
Each image has all the dependencies and shared libraries coupled together to form an image
How to search Docker Hub for images
How to pull latest of specific version of an image
What are Official Docker Images
Docker Container
Difference between Docker Image & Docker Container
How to create(run) a container
How to remove a container
How to publish Container port(s) to Host ports
How to bind local disk-based volumes
How to read Docker Container Logs
How to stop and start a container
MySQL Instance to Docker Container
How we can install both MySQL server and Docker on the same host
How MySQL instance's data directory can be bind with Docker container
How can Docker Container run with existing MySQL Data Directory
Are there any course requirements?
Basic understanding of Docker
Basic understand of MySQL
Note: We will be using AWS Linux 2 to install Docker Community Edition. Since AWS Linux is Red Hat Based System so the installing the Docker on it should not be any different than installing Docker on CenOS or RedHat Linux.