To simplify Docker and Virtual Machine setup in Mac OS, Docker for Mac was created.Īccording to this documentation, Docker for Mac is: Hence, a Virtual Machine is set up on top of Mac OS and has an instance (Guest OS) of Linux to run containers. Mac OS is Unix and it doesn't have containers directly, as in Linux OS (Ubuntu, Fedora, Core OS, etc.). Why Docker For Mac?ĭocker is an abstraction on top of Linux containers to simplify using and managing containers. This article assumes that you know what Docker is, understand how to use MySQL, and understand how to use SQL commands to create a user, create a database, and grant privileges.īefore we jump into action, let's learn the basics of Docker for Mac. This article will provide step-by-step instructions on how to set up MySQL in Docker for Mac and how to access MySQL from the host (Mac) OS.