Here’s a cheat sheet to run MySQL in a Docker container in your Windows or Mac laptop in a few minutes. In this brief how-to you will:
- Install Docker Desktop in your laptop
- Download official Oracle MySQL image or Docker Inc. image
- Start the container
- Administer it
- Start a MySQL session and start a Linux session
Download and install Docker
You can download Docker Desktop for Windows or Mac from https://docs.docker.com/desktop/. Install like any other application and you’re ready to move to the next step. As you can read from the docs, Docker Desktop will install several things like Docker Compose or Kubernetes. We’ll use both in advanced examples in future posts.
Pull MySQL Server image
Now you can pull the MySQL Server image. You have two options. You can download the …
[Read more]