Last Updated on : 2023-12-07 03:02:54download
This topic describes how to install Docker for macOS. These steps apply when you deploy Tuya Edge Gateway (TEdge) in containers. For more information, see Install Docker Desktop on Mac.
To install Docker, your Mac must be running macOS Mojave 10.14 or later. For more information, see Docker Desktop for Mac user manual.
Homebrew Cask supports Docker Desktop for Mac. This allows you to easily install Docker by using Homebrew Cask:
$ brew install --cask docker
To manually install Docker, download the Docker.dmg file from the Docker official website. The file is about 500 MB.
Similar to other macOS software, to install Docker, double-click the .dmg
file, and drag the Moby icon to the Application
folder.
Find the Docker icon on your desktop and double-click the icon to run Docker.
Then, the Moby icon appears in the top-right corner of the desktop. This icon indicates the running status of Docker.
You can click the Moby icon to show the operation menu.
Run the following command in Terminal to check the current Docker version:
$ docker --version
Docker version 20.10.0, build 7287ab3
(Optional) If both docker version
and docker info
are correct, perform the following steps to run an Nginx server:
i. Use the following command to run the Nginx service.
```bash
$ docker run -d -p 80:80 --name webserver nginx
```
ii. Open your browser and visit http://localhost. If the message “Welcome to nginx!” is returned, Docker Desktop for Mac is installed.
iii. To stop and delete the Nginx server, run the following command:
```bash
$ docker stop webserver
$ docker rm webserver
```
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback