translate install/mac.md

pull/470/head
Dorsey.Xu 2020-10-26 15:26:51 +08:00
parent b54b5b0a0f
commit d47f565e83
1 changed files with 23 additions and 22 deletions

View File

@ -1,46 +1,46 @@
## macOS Docker Desktop CE
## Install Docker Desktop CE on maxOS
###
### OS Requirement
[Docker Desktop for Mac](https://docs.docker.com/docker-for-mac/) 要求系统最低为 macOS El Capitan 10.11。
The minimum OS version requirement [Docker Desktop for Mac](https://docs.docker.com/docker-for-mac/) is macOS El Capitan 10.11.
###
### Installation
#### 使 Homebrew
#### Install with Homebrew
[Homebrew](https://brew.sh/) 的 [Cask](https://caskroom.github.io/) 已经支持 Docker Desktop for Mac因此可以很方便的使用 Homebrew Cask 来进行安装:
The [Cask](https://caskroom.github.io/) of [Homebrew](https://brew.sh/) has already supported Docker Desktop for Mac, so we can instrall it with Homebrew Cask easily.
```bash
$ brew cask install docker
```
####
#### Download and Install Manually
[Stable](https://download.docker.com/mac/stable/Docker.dmg) 或 [Edge](https://download.docker.com/mac/edge/Docker.dmg) 版本的 Docker Desktop for Mac。
If you need to download `Docker Desktop for Mac` manually, please click the [Stable](https://download.docker.com/mac/stable/Docker.dmg) or [Edge](https://download.docker.com/mac/edge/Docker.dmg) link to downlaod it.
macOS `.dmg` [Moby](https://blog.docker.com/2013/10/call-me-moby-dock/) 的鲸鱼图标拖拽到 `Application` 文件夹即可(其间需要输入用户密码)。
Just as other softwares on macOS, the installation of Docker Desktop for macOS is easy. You only need to double click the `.dmg` file, and then drag the whale([Moby](https://blog.docker.com/2013/10/call-me-moby-dock/)) icon to the `Applications` folder. During the process, you will be prompted to enter your password for your mac.
![](_images/install-mac-dmg.png)
###
### Run
Docker
Find the Docker icon from your applications, and double click the icon to run Docker Desktop.
![](_images/install-mac-apps.png)
Docker
After running, there should be a whale icon on the top right bar of your mac desktop. This icon indicates the running status of Docker.
![](_images/install-mac-menubar.png)
"Got it!"
For the first time clicking on the icon, you may see the successful installation window. Clicking on "Got it!" will close the window.
![](_images/install-mac-success.png)
Clicking on the whale icon each time afterwards will show you the operation menu.
![](_images/install-mac-menu.png)
Docker
After opening the terminal, you can check the newly-installed Docker version with commands.
```bash
$ docker --version
@ -51,27 +51,28 @@ $ docker-machine --version
docker-machine version 0.16.1, build cce350d7
```
`docker version``docker info` [Nginx ](https://hub.docker.com/_/nginx/)
If `docker version` and `docker info` shows no error nor warning, you can try to run an [Nginx Server](https://hub.docker.com/_/nginx/).
```bash
$ docker run -d -p 80:80 --name webserver nginx
```
访 <http://localhost>,如果看到了 "Welcome to nginx!",就说明 Docker Desktop for Mac 安装成功了。
When the sever is up and running, you can visit <http://localhost>, if you see "Welcome to nginx!", it means the installation of Docker Desktop for macOS is successful.
![](_images/install-mac-example-nginx.png)
Nginx
To stop the Nginx server and delete it, you can execute the following commands:
```bash
$ docker stop webserver
$ docker rm webserver
```
###
### Registry Mirror(In China)
使 Docker Docker [](mirror.md)
If you pull docker images very slowly, then you can configure [Registry Mirror](mirror.md).
###
### References
* [](https://docs.docker.com/docker-for-mac/install/)
* [Official Document](https://docs.docker.com/docker-for-mac/install/)