Docker is an open-source project that automates the deployment of applications inside software containers. Docker CE(Community Edition) for Mac is an easy-to-install desktop app for building, debugging, and testing Dockerized apps on a Mac.
1. system requirement
Docker for Mac works on OS X El Capitan 10.11 and newer macOS releases.
2. download Docker installation package
The stable Docker image for Mac can be downloaded with link.
3. install
Double-click Docker.dmg
in your download folder, and follow the installation process.
After the installation is completed, goto Launchpad
and start Docker by clicking the icon. After that, the whale in the top status bar shows that Docker is running, and accessible from a terminal.
4. test and run
Open a terminal, and try out some Docker commands to make sure it’s properly installed.
-
Run
docker version
to check that you have the latest release installed. -
Run
docker run hello-world
to verify that Docker is pulling images and running as expected.