Installing MySQL in a Docker container is easier to use and quick. It will not mess up the OS and whenever needed it can be started and stopped simply by issuing the Docker containers commands. Just follow the simple steps below. pull the MySQL Docker image from Docker Hub. docker pull mysql 2. Now run