Installing Docker on MacOS
Docker Desktop for Mac is easy to install. It's the fastest and most reliable way to run Docker on your Mac. It comes with everything you need: Docker Engine, the Docker CLI Client, Docker Compose and Docker Machine.
Docker Desktop for Mac works on OS X Sierra 10.12 and newer macOS releases.
Install Docker for Mac
Download the latest stable version of Docker Desktop.
Once the download has completed, install it by double-clicking the
Run Docker for Mac
When the installation is completed and Docker has started, you will see the little Docker whale in your status bar.
Let's open up terminal and try some Docker commands
docker-machine --versionto check the installation
docker run hello-worldto run the
hello-worldDocker example and verify everything is working as expected
Congratulations! You now have Docker installed and running on your Mac.
Now you have Docker installed and running on your Mac, let's look at building a Docker image.