Antsy to get Docker up and running on your Mac? If so, give Docker Desktop a go and be developing in minutes.
For many, the ideal cloud development platform is macOS. It's stable, offers an outstanding interface, and is pretty much everywhere. But for those who want to develop using Docker, what is the path of least resistance? From my experience, you cannot beat Docker Desktop for installing Docker on macOS.
Don't get too excited, however. Docker Desktop doesn't automatically install an Apple-like GUI for the management and deployment of containers. What it does offer is a simplified installation of the Docker daemon (and the associated commands), a dock icon to give you quick access to your DockerHub repositories, quick access to the installation of Kitematic (for GUI-based management of containers … more on this in a bit), and other handy tools. But the single most important aspect of Docker Desktop is the installation of Docker.
SEE: Serverless computing: A guide for IT leaders (TechRepublic Premium)
Let's install and use Docker Desktop on macOS.
The installation of Docker Desktop is simple:
- Download the Docker Desktop installer .dmg file.
- Double-click the .dmg file and, when prompted, click and drag the files to Applications (Figure A).
- Allow the installation to complete.
You might also want to install Kitematic and Git on your Mac. To install Git, download the installer file, double-click on the downloaded file, and walk through the simple instructions. For Kitematic, don't use the entry in the Docker Desktop Whale menu (as that renders Kitematic unusable). Instead, download the latest version from GitHub, double-click the downloaded file, and walk through the simple instructions.
Once you install everything, you're ready to start working with Docker. You can either open up a terminal window and deploy your container from the command line (Figure B), or you can open Kitematic and start deploying via a handy GUI.
To open Kitematic, click on the Docker Desktop Whale icon and then click Kitematic. When you first attempt to use Kitematic, you will be prompted to give it accessibility privileges. From within the Security & Privacy window, make sure to unlock the tool and then click the checkbox, associated with Kitematic (Figure C), to give it the necessary privileges.
Once you give Kitematic the necessary permissions, you can start it from either the Apple Launchpad or from the Docker Desktop Whale menu. Once Kitematic is running, search for an image on Docker Hub, and quickly deploy it (Figure D).
At this point, you are ready to start developing your cloud-based containers on the macOS desktop. Getting Docker installed via this method is painless and offers a few more tricks to be had than you'll find via other routes.
Give this method of getting Docker up and running on your Mac and see if it doesn't have you working quickly and painlessly with Docker.
- How to set up a Ruby on Rails development environment with Docker (TechRepublic)
- How to install GitHub Desktop (TechRepublic)
- How to install Kitematic on Pop!_OS (TechRepublic)
- Docker Hub hack exposed data of 190,000 users (ZDNet)
- Hybrid cloud: A cheat sheet (TechRepublic)
- Hybrid cloud: A guide for IT pros (TechRepublic download)
- Top cloud providers 2019: AWS, Microsoft, Azure, Google Cloud; IBM makes hybrid move; Salesforce dominates SaaS (ZDNet)
- Best cloud services for small businesses (CNET)
- Microsoft Office vs Google Docs Suite vs LibreOffice (Download.com)
Cloud computing: More must-read coverage (TechRepublic on Flipboard)