Get started with Docker for Mac

2017.01.13 14:45* 字数 5916


Welcome to Docker for Mac!

Docker is a full development platform for creating containerized apps, and Docker for Mac is the best way to get started with Docker on a Mac.
(Docker是一个创建容器式APP的完整开发平台,并且Docker For Mac是在Mac上使用Docker的最佳方式)

Already have Docker for Mac? If you already have Docker for Mac installed, and are ready to get started, skip down to Step 2. Check versions of Docker Engine, Compose, and Machine to work through the rest of the Docker for Mac tour, or jump over to the standard Getting Started with Docker tutorial.
开始使用Docker for Mac?如果你的Mac早已使用Docker,并且已经开启,则跳到第二步 Step 2. 检查Docker Engine, Compose, and Machine的版本来继续剩下的旅程,或者跳到Getting Started with Docker标准旅程)

Download Docker for Mac
(下载Docker for Mac)
If you have not already done so, please install Docker for Mac. You can download installers from the stable or beta channel. For more about stable and beta channels, see the FAQs.
(如果你还没开始,请下载Docker for Mac。你可以下载稳定或测试版本,想要获取更多信息,看 FAQs

Stable channel
This installer is fully baked and tested, and comes with the latest GA version of Docker Engine. This is the best channel to use if you want a reliable platform to work with. These releases follow a version schedule with a longer lead time than the betas, synched with Docker Engine releases and hotfixes.On the stable channel, you can select whether to send usage statistics and other data.
(稳定版本是经过完全测试过的,并且使用Docker Engine的最新的GA版本。如果你想要一个可靠的开发平台,这是最好的版本。这些版本遵循着比betas更长交付时间的版本计划,并且与Docker Engine的修补程序同步进行。在稳定版本中,你可以选择是否发送可用的统计信息和其他数据)

Important Notes(关键提示):
Docker for Mac requires OS X El Capitan 10.11 or newer macOS release running on a 2010 or newer Mac, with Intel’s hardware support for MMU virtualization. The app will run on 10.10.3 Yosemite, but with limited support. Please see What to know before you install for a full explanation and list of prerequisites.
(Docker for Mac要求OS X El Capitan 10.11或者更新的macOS版本,必须是2010或更新的型号,具有英特尔对内存管理单元(MMU)虚拟化的硬件支持,应用也可运行在10.10.3 Yosemite上,但会有限制,详情What to know before you install来查看完整说明和要求)

You can switch between beta and stable versions, but you must have only one app installed at a time. Also, you will need to save images and export containers you want to keep before uninstalling the current version before installing another. For more about this, see the FAQs about beta and stable channels.
(你可在测试版和稳定版中进行切换,但你同时只能安装其中一个应用,并且,在卸载当前的版本之前,你需要保存好镜像并导出你想要保存的容器,然后再安装另外一个,想获取更多信息,请查看 FAQs about beta and stable channels。)

What to know before you install(安装前须知)
README FIRST for Docker Toolbox and Docker Machine users: If you are already running Docker on your machine, first read Docker for Mac vs. Docker Toolbox to understand the impact of this installation on your existing setup, how to set your environment for Docker for Mac, and how the two products can coexist.
(Docker Toolbox 和 Docker Machine 用户须先阅读:如果你早已在你的机器上运行Docker,请首先阅读Docker for Mac vs. Docker Toolbox以了解此安装对您现有设置的影响,如何为Docker for Mac设置环境 ,以及这两种产品如何共存。)

Relationship to Docker Machine: Installing Docker for Mac does not affect machines you created with Docker Machine. You’ll get the option to copy containers and images from your local default
machine (if one exists) to the new Docker for Mac HyperKit VM. When you are running Docker for Mac, you do not need Docker Machine nodes running at all locally (or anywhere else). With Docker for Mac, you have a new, native virtualization system running (HyperKit) which takes the place of the VirtualBox system. To learn more, see Docker for Mac vs. Docker Toolbox.
(Docker Machine的关联:安装Docker for Mac不会影响你使用Docker Machine来安装的机器。你可以从你本地的默认机器(如果存在的话)复制容器和镜像中的选项到新的Docker for MacHyperKit VM。当你运行Docker for Mac时,你不需要在本地(或其他任何地方)的运行Docker Machine节点,使用Docker for Mac,您会有一个新的本地虚拟化系统(HyperKit),它代替了VirtualBox系统。 要了解更多信息,请参阅 Docker for Mac vs. Docker Toolbox

System Requirements: Docker for Mac will launch only if all of these requirements are met.
Mac must be a 2010 or newer model, with Intel’s hardware support for memory management unit (MMU) virtualization; i.e., Extended Page Tables (EPT) and Unrestricted Mode.
(Mac必须是2010或更新的型号,具有英特尔对内存管理单元(MMU)虚拟化的硬件支持; 即扩展页表(EPT)和非限制模式。)

OS X El Capitan 10.11 and newer macOS releases are supported. At a minimum, Docker for Mac requires macOS Yosemite 10.10.3 or newer, with the caveat that going forward 10.10.x is a use-at-your-own risk proposition.
(支持OS X El Capitan 10.11和更新的MacOS版本。 至少Docker for Mac需要使用macOS Yosemite 10.10.3或更新版本,注意10.10.x之前的版本则自担风险。)

Starting with Docker for Mac stable release 1.13 (upcoming), and concurrent Beta releases, we will no longer address issues specific to OS X Yosemite 10.10. In future releases, Docker for Mac could stop working on OS X Yosemite 10.10 due to the deprecated status of this OS X version. We recommend upgrading to the latest version of macOS.
(从Docker for Mac稳定版1.13(即将推出)和并发的Beta版本开始,我们将不再解决OS X Yosemite 10.10特有的问题。 在将来的版本中,由于OS X版本的弃用状态,Docker for Mac可能会停止在OS X Yosemite 10.10上运行。 我们建议升级到最新版本的macOS。)
At least 4GB of RAM
VirtualBox prior to version 4.3.30 must NOT be installed (it is incompatible with Docker for Mac)

Note: If your system does not satisfy these requirements, you can install Docker Toolbox, which uses Oracle Virtual Box instead of HyperKit.
(注意:如果您的系统不满足这些要求,您可以安装Docker Toolbox,它使用Oracle Virtual Box而不是HyperKit。)

What the install includes: The installation provides Docker Engine, Docker CLI client, Docker Compose, and Docker Machine.
(安装包里包括: Docker Engine, Docker CLI client, Docker Compose, and Docker Machine

Step 1. Install and Run Docker for Mac
Double-click Docker.dmg
to open the installer, then drag Moby the whale to the Applications folder.
(步骤1.安装并运行Docker for Mac,双击<code>Docker.dmg</code>来打开安装包,然后拖动Docker.app到Application文件夹)

Install Docker app
Install Docker app

You will be asked to authorize
with your system password during the install process. Privileged access is needed to install networking components and links to the Docker apps.

to start Docker.

Docker app in Hockeyapp
Docker app in Hockeyapp

The whale in the top status bar indicates that Docker is running, and accessible from a terminal.

Whale in menu bar
Whale in menu bar

If you just installed the app, you also get a success message with suggested next steps and a link to this documentation. Click the whale (
) in the status bar to dismiss this popup.
Docker success
Docker success


Click the whale (

) to get Preferences, and other options.

Docker context menu
Docker context menu


Select About Docker to verify that you have the latest version.
Congratulations! You are up and running with Docker for Mac.
(选择 About Docker 以验证您是否具有最新版本。
恭喜! 你使用Docker for Mac运行。)

Step 2. Check versions of Docker Engine, Compose, and Machine
(步骤2.检查Docker Engine,Compose和Machine的版本)
Run these commands to test if your versions of docker, docker-compose, and docker-machine are up-to-date and compatible with
$ docker --version
Docker version 1.13.0-rc3, build 4d92237
$ docker-compose --version
docker-compose version 1.9.0, build 2585387
$ docker-machine --version
docker-machine version 0.9.0-rc2, build 7b19591

Note: The above is an example. Your output will differ if you are running different (e.g., newer) versions.

Step 3. Explore the application and run examples
1.Open a command-line terminal, and run some Docker commands to verify that Docker is working as expected.
Some good commands to try are docker version
to check that you have the latest release installed, and docker ps
and docker run hello-world
to verify that Docker is running.
一些好的命令例如<code>docker version</code>检查是否为最新版本,并且<code>docker ps</code>和<code>docker run hello-world</code>来验证Docker正在运行)

2.For something more adventurous, start a Dockerized web server.
docker run -d -p 80:80 --name webserver nginx
(2、更进一步则是使用<code>docker run -d -p 80:80 --name webserver nginx</code>启动Dockerized Web服务器)
<pre>docker run -d -p 80:80 --name webserver nginx</pre>

If the image is not found locally, Docker will pull it from Docker Hub.
In a web browser, go to http://localhost/ to bring up the home page. (Since you specified the default HTTP port, it isn’t necessary to append :80
at the end of the URL.)
(如果本地没有找到镜像,Docker会从Docker Hub中拉取。在浏览器中,进入<code>http://localhost/ </code>来打开主页(由于你指定了默认的http端口,所以不需要在URL的末尾添加<code>:80</code>))

nginx home page
nginx home page

Note: Early beta releases used docker
as the hostname to build the URL. Now, ports are exposed on the private IP addresses of the VM and forwarded to localhost
with no other host name set. See also, Release Notes for Beta 9.

Run docker ps while your web server is running to see details on the webserver container.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 56f433965490 nginx "nginx -g 'daemon off" About a minute ago Up About a minute>80/tcp, 443/tcp webserver
(当你的web服务器正在运行时,运行<code>docker ps</code>来查看webserver容器的详情)
56f433965490 nginx "nginx -g 'daemon off" About a minute ago Up About a minute>80/tcp, 443/tcp webserver

Stop or remove containers and images.
The <code>nginx</code> webserver will continue to run in the container on that port until you stop and/or remove the container. If you want to stop the webserver, type: <code>docker stop webserver</code> and start it again with <code>docker start webserver</code>. A stopped container will not show up with <code>docker ps</code>; for that, you need to run <code>docker ps -a</code>
(除非你终止或移除容器,否则<code>nginx</code>服务器会继续在那个端口的容器上运行。如果你想终止服务器,输入<code>docker stop webserver</code>并使用<code>docker start webserver</code>重启,一个已终止运行的容器中运行<code>docker ps</code>不会有显示,因此你需要运行<code>docker ps -a</code>)
To stop and remove the running container with a single command, type: <code>docker rm -f webserver</code>. This will remove the container, but not the <code>nginx</code> image. You can list local images with <code>docker images</code>. You might want to keep some images around so that you don’t have to pull them again from Docker Hub. To remove an image you no longer need, use <code>docker rmi</code> followed by an image ID or image name. For example, <code>docker rmi nginx</code>.
(为了停止并删除正在运行的容器,你需要键入一条命令 <code>docker rm -f webserver</code>,这可以移除容器,但不会移除<code>nginx</code>镜像,你可使用<code>docker images</code>列出本地镜像列表。你想要保留一些镜像,这样不必再从Docker Hub中拉取镜像。要删除你不再需要的镜像,请使用 <code>docker rmi</code>命令,后面参数为镜像的ID或镜像的名称。例如<code>docker rmi nginx</code>)

Want more example applications? - For more example walkthroughs that include setting up services and databases in Docker Compose, see Example Applications.
想要更多的示例演练?-有关更多示例演练,包括在Docker Compose中设置服务和数据库,请参阅 示例演练


–> Preferences from the menu bar. You can set the following runtime options.
(从鲸鱼图标中的选项栏选择Preferences,你可以设置以下正在运行时选项 )

Auto-start, update, and backups
Docker for Mac is set to automatically start when you log in. Uncheck the login autostart option if you don’t want Docker to start when you open your session.
Auto-start, update, and backups
Docker for Mac设置为在您登录时自动启动。如果您不希望在打开session时启动Docker,请取消选中login autostart选项。)

Docker for Mac is set to check for updates automatically and notify you when an update is available. If an update is found, click OK to accept and install it (or cancel to keep the current version). If you disable the check for updates, you can still find out about updates manually by choosing

->Check for Updates
(Docker for Mac设置为自动检查更新,并在更新可用时通知您。 如果找到更新,单击OK接受并安装它(或取消保留当前版本)。 如果禁用检查更新,您仍然可以通过选择 - >Check for Updates

Check Exclude VM from Time Machine backups to prevent Time Machine from backing up the Docker for Mac virtual machine.
Tip: Beta dialogs — Starting with Beta 31, an option to auto-send usage data is also on the General dialog. In Stable releases, the option is still on the Privacy tab. For now, both Stable and Beta users can read more about usage data settings in the Privacy topic.
(选中Exclude VM from Time Machine backups ,以防止Time Machine备份Mac虚拟机的Docker)
(提示:测试版对话框 - 从Beta 31开始,自动发送使用情况数据的选项也在常规对话框中。 在稳定版本中,此选项仍在“隐私”选项卡上。 现在,稳定版和测试版用户都可以在隐私主题中了解有关使用情况数据设置的更多信息。)

By default, Docker for Mac is set to use 2 processors. You can increase processing power for the app by setting this to a higher number, or lower it to have Docker for Mac use fewer computing resources.
(CPU:默认情况下,Docker for Mac设置为使用2个进程。 您可以通过将应用程序设置为更高的数字来提高应用程序的处理能力,或者降低它使Docker for Mac使用更少的计算资源。)

By default, Docker for Mac is set to use 2
GB runtime memory, allocated from the total available memory on your Mac. You can increase the RAM on the app to get faster performance by setting this number higher (for example to 3) or lower (to 1) if you want Docker for Mac to use less memory.
(内存:默认情况下,Docker for Mac设置为使用2 GB运行时内存,从Mac上的总可用内存中分配。 您可以增加应用程序的RAM以获得更快的性能,或者如果你希望Docker for Mac使用更少的内存,通过设置这个数字更高(例如到3)或更低(到1)。)
Tip: Beta dialogs — Starting with Beta 31, CPUs and Memory settings are on the Advanced dialog. Starting with Beta 33, you can specify the storage location of the Linux volume; i.e., where containers and images are stored. These settings are shown below.
(提示:测试版对话框 - 从Beta 31开始,CPU和内存设置位于高级对话框中。 从Beta 33开始,您可以指定Linux卷的存储位置; 即存储容器和图像的地方。 这些设置如下所示。)

CPUs and Memory settings UIstarting at Beta 31
CPUs and Memory settings UIstarting at Beta 31


Advanced Preference settings-advanced
Advanced Preference settings-advanced

Custom registries(自定义注册表)
As an alternative to using Docker Hub to store your public or private images or Docker Trusted Registry, you can use Docker to set up your own insecure registry. Add URLs for insecure registries and registry mirrors on which to host your images. (See also, How do I add custom CA certificates? in the FAQs.)
(添加用于托管你的镜像的不安全的注册表和注册表镜像的URLs,来作为使用Docker Hub 来存储你的公有或私有的镜像或Docker可信的注册表的一种替代方法。)
Tip: Beta dialogs — Starting with Beta 31, options to set up your own registries are available as part of a new daemon tab. See Docker daemon).
(提示:测试版对话框 - 从Beta 31开始,设置您自己的注册表的选项可作为新的守护程序选项卡的一部分。 参见Docker守护进程)。)

HTTP proxy settings
Docker for Mac will detect HTTP/HTTPS Proxy Settings and automatically propagate these to Docker and to your containers. For example, if you set your proxy settings to, Docker will use this proxy when pulling containers.
(TTP代理设置:Docker for Mac将检测HTTP / HTTPS代理设置,并自动将这些传播到Docker和您的容器。 例如,如果您将代理设置设置为,Docker将在提取容器时使用此代理。)
Tip: Beta dialogs — Starting with Beta 31, HTTP proxy settings are provided on a dedicated dialog, as shown below.
(提示:测试版对话框 - 从Beta 31开始,HTTP代理设置在专用对话框中提供,如下所示。)

Proxies settings
Proxies settings

Docker Daemon (Beta feature)
Starting with Beta 31, configuration options on the Docker daemon move to their own Daemon tab, including basic and advanced options.
(Docker守护进程(测试版功能):从Beta 31开始,Docker守护程序上的配置选项移动到自己的Daemon选项卡,包括基本和高级选项。)

Daemon Basic (experimental mode and registries)
By default, Docker for Mac Beta releases use the experimental version of Docker Engine, described in the Docker Experimental Features README on GitHub. Starting with Beta 31, you can toggleexperimental mode on and off. If you toggle it off, Docker for Mac Beta uses the current generally available release of Docker Engine, the same as Stable Docker for Mac versions uses.
(Daemon基础(实验模式和注册表):默认情况下,Docker for Mac Beta版本使用Docker Engine的实验版本,在GitHub上的Docker Experimental Features README中进行了描述。 从Beta 31开始,您可以开启和关闭实验模式。 如果您关闭它,Docker for Mac Beta使用当前普遍可用的Docker Engine发行版,与Mac版本使用的Stable Docker相同。)
You can check whether you are running experimental mode or not by typing <code>docker version</code> on the command line. Experimental mode is listed under Server data. If Experimental is true, then Docker is running in experimental mode, as shown here. (If false, Experimental mode is off.)
(您可以通过在命令行中键入<code>docker version</code>来检查您是否正在运行实验模式。 实验模式列在服务器数据下。 如果Experimental是true,那么Docker正在实验模式下运行,如下所示。 (如果为false,实验模式已关闭。))
$ docker version
Client: Version: 1.13.0-rc3
API version: 1.25
Go version: go1.7.3
Git commit: 4d92237
Built: Tue Dec 6 01:15:44 2016
OS/Arch: darwin/amd64

Server: Version: 1.13.0-rc3
API version: 1.25 (minimum version 1.12)
Go version: go1.7.3
Git commit: 4d92237
Built: Tue Dec 6 01:15:44 2016
OS/Arch: linux/amd64
Experimental: true

You can use Docker to set up your own registries. For details on this, see Custom Registries.
(你可以使用Docker来设置你自己的registries。更多详情请看Custom Registries


Daemon Advanced (JSON configuration file)
(守护进程高级版(JSON 配置文件))
On the Daemon -> Advanced dialog, you can directly configure the daemon from the JSON file, and determine entirely how your containers will run. For a full list of options on the Docker daemon, seedaemon in the Docker Engine command line reference.
(在Daemon -> Advanced dialog中,你可以直接从JSON文件中配置daemon,并且完全指定你的容器是如何运行。Docker daemon中的一系列选项请在Docker Engine命令行参考中查看daemon
After editing the daemon configuration , click Apply & Restart to save it and reboot Docker. Or, to cancel changes, click another preference tab, then choose to discard or not apply changes when asked.
Docker Daemon
Docker Daemon

(在编辑好daemon的配置后,点击Apply & Restart 来保存并且重启Docker,或者取消改变,点击另外的选项tab,然后在被询问的时候选择放弃或不改变。)
File sharing文件共享
You can decide which directories on your Mac to share with containers.
Add a Directory - Click +
and navigate to the directory you want to add.
Add a Directory-点击<code>+</code>,选择你想要共享的文件夹的目录)
File Sharing
File Sharing

Click Apply & Restart to make the directory available to containers using Docker’s bind mount (-v) feature.
(点击Apply & Restart来使用Docker的绑定安装(-v)特性使该目录在该容器有效)
There are some limitations on the directories that can be shared:
They cannot be a subdirectory of an already shared directory.
They cannot already exist inside of Docker.
See Namespaces in the topic on osxfs file system sharing for more information.

Tip: File sharing is required for volume mounting if the project lives outside of the /Users directory. In that case, share the drive where the Dockerfile and volume are located. Otherwise, you will get file not found or cannot start service errors at runtime. (See also Volume mounting requires file sharing for any project directories outside of /Users
(提示:如果项目位于/ Users目录之外,则卷安装需要文件共享。 在这种情况下,请共享Dockerfile和卷所在的驱动器。 否则,您将得到文件未找到或无法在运行时启动服务错误。 (另请参见Volume mounting requires file sharing for any project directories outside of /Users

You can set Docker for Mac to auto-send diagnostics, crash reports, and usage data. This information can help Docker improve the application and get more context for troubleshooting problems.
(您可以将Docker for Mac设置为自动发送诊断,崩溃报告和使用数据。 这些信息可以帮助Docker改进应用程序,并获得更多的上下文以解决问题。)
Uncheck any of the options to opt out and prevent auto-send of data. Docker may prompt for more information in some cases, even with auto-send enabled.
(取消选中任何选项可选择停用,并阻止自动发送数据。 Docker在某些情况下可能会提示更多信息,即使启用了自动发送。)


Tip: Beta dialogs — Starting with Beta 31, options to enable or disable auto-send of usage data are on the General dialog.
(提示:测试版对话框 - 从Beta 31开始,在“常规”对话框中启用或禁用自动发送使用情况数据的选项。)

Also, you can enable or disable these auto-reporting settings with one click on the information popup when you first start Docker.

Startup information
Startup information

Uninstall or reset
–> Preferences from the menu bar, then click Uninstall / Reset on the Preferences dialog.
(从菜单条中选择Preferences ,在Preferences dialog中点击 Uninstall / Reset
Uninstall or reset Docker
Uninstall or reset Docker

Uninstall - Choose this option to remove Docker for Mac from your system.
Uninstall - 选择这个选项来从你系统中移除Docker for Mac)

Reset to factory defaults - Choose this option to reset all options on Docker for Mac to its initial state, the same as when it was first installed.
Reset to factory defaults - 选择这个选项来重置Docker for Mac中所有选项为第一次安装时候的初始状态)

You can uninstall Docker for Mac from the command line with this command: <DockerforMacPath> --uninstall. If Docker is installed in the default location, the following command will provide a clean uninstall.
(你可以使用命令行<DockerforMacPath> --uninstall卸载Docker for Mac,如果Docker是安装在默认位置,那下面这些命令可以提供干净的卸载)
$ /Applications/ --uninstall
Docker is running, exiting...
Docker uninstalled successfully. You can move the Docker application to the trash.

You might want to use the command-line uninstall if, for example, you find that the app is non-functional, and you cannot uninstall it from the menu.

Installing bash completion
If you are using bash completion, such as homebrew bash-completion on Mac, bash completion scripts for - docker - docker-machine - docker-compose may be found inside, in the Contents/Resources/etc folder.
(如果你正在使用bash completion,例如homebrew bash-completion on Mac,Docker.app在文件夹Contents/Resources/etc中会发现- docker - docker-machine - docker-compose的bash completion script)

To activate bash completion, these files need to be copied or symlinked to your bash_completion.d directory. For example, if you use Homebrew:
(为了是bash completion生效,下面这些文件需要被复制并连接到你的bash_completion.d目录下,例如,如果你使用Homebrew:)
ln -s /Applications/ /usr/local/etc/bash_completion.d/docker
ln -s /Applications/ /usr/local/etc/bash_completion.d/docker-machine
ln -s /Applications/ /usr/local/etc/bash_completion.d/docker-compose

Giving feedback and getting help
To get help from the community, review current user topics, join or start a discussion, log on to ourDocker for Mac forum.
(要从社区获得帮助,查看当前用户主题,加入或开始讨论,登录我们的Docker for Mac论坛。)

To report bugs or problems, log on to Docker for Mac issues on GitHub, where you can review community reported issues, and file new ones. See Diagnose problems, send feedback, and create GitHub issues. As a part of reporting issues on GitHub, we can help you troubleshoot the log data.
(要报告错误或问题,请在GitHub上登录Docker for Mac问题,您可以在其中查看社区报告的问题并提交新问题。 请参阅诊断问题,发送反馈和创建GitHub问题。 作为GitHub的报告问题的一部分,我们可以帮助您排查日志数据。)

To give us feedback on the documentation or update it yourself, use the Feedback options at the bottom of each docs page.

Where to go next
Try out the Getting Started with Docker tutorial.

Dig in deeper with learn by example tutorials on building images, running containers, networking, managing data, and storing images on Docker Hub.
(深入了解在Docker Hub上构建图像,运行容器,网络,管理数据和存储图像的示例教程)

See Example Applications for example applications that include setting up services and databases in Docker Compose.
(请参阅示例应用程序的示例应用程序,包括在Docker Compose中设置服务和数据库。)

Interested in trying out the new swarm mode on Docker Engine v1.12?
(有兴趣在Docker Engine v1.12上试用新的群模式吗?)
See Get started with swarm mode, a tutorial which includes specifics on how to leverage your Docker for Mac installation to run single and multi-node swarms.
(请参阅开始使用swarm模式,这是一个教程,其中包括如何利用Docker for Mac安装来运行单节点和多节点群集。)
Also, try out the Swarm examples in docker labs. Run the bash script and follow the accompanying Docker Swarm Tutorial. The script uses Docker Machine to create a multi-node swarm, then walks you through various Swarm tasks and commands.
(另外,在Docker实验室里试试Swarm的例子。运行bash脚本,并按照相应的Docker Swarm教程。该脚本使用Docker Machine创建多节点群集,然后引导您完成各种Swarm任务和命令。)

For a summary of Docker command line interface (CLI) commands, see Docker CLI Reference Guide.
(有关Docker命令行界面(CLI)命令的摘要,请参阅“Docker CLI参考指南”。)

Check out the blog posts on Docker for Mac and Docker for Windows public betas, and earlier postson the initial private beta.
(查看Docker for Mac和Docker for Windows公共beta版的博客文章,以及最初的私人测试版的更早版本。)

Please give feedback on your experience with the app and report bugs and problems by logging into our Docker for Mac forum.
(请提供反馈您的应用程序的经验,并报告错误和问题登录我们的Docker for Mac论坛。)

Docker for Mac
Web note ad 1