欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

macos安装docker_在macOS上安装Docker

程序员文章站 2022-05-18 09:29:20
...

macos安装docker

Before we can do anything interesting with our Dockerfile, we need to install Docker.

在我们可以对Dockerfile做任何有趣的事情之前,我们需要安装Docker。

The exact installation instructions depend on your operating system.

确切的安装说明取决于您的操作系统。

The Docker Website contains detailed instructions for

Docker网站包含有关以下内容的详细说明:

I am a Mac user and I will show you the exact steps to install Docker on a Mac. If you use Windows or Linux, please refer to the instructions (I don’t have a Windows or Linux Desktop computer to try).

我是Mac用户,我将向您展示在Mac上安装Docker的确切步骤。 如果您使用Windows或Linux,请参阅说明(我没有Windows或Linux台式机可以尝试)。

Docker Desktop for Mac is the name of the software you need to install, and you can find it here: https://hub.docker.com/editions/community/docker-ce-desktop-mac/

Docker Desktop for Mac是您需要安装的软件的名称,您可以在这里找到它: https : //hub.docker.com/editions/community/docker-ce-desktop-mac/

Once you download the installation file, which is a bit more than 400MB in size, run it and you’ll be asked to move the Docker app to the Applications folder.

下载大小超过400MB的安装文件后,运行它,然后会要求您将Docker应用程序移至Applications文件夹。

macos安装docker_在macOS上安装Docker

Do that, then run the app:

这样做,然后运行该应用程序:

macos安装docker_在macOS上安装Docker

The first thing that happens is that it asks you to install the command line tools, and it needs your permission (and password):

发生的第一件事是,它要求您安装命令行工具,并且需要您的许可(和密码):

macos安装docker_在macOS上安装Docker

You will see the whale icon appearing the the Mac toolbar, initially informing you Docker Desktop is starting:

您将看到Mac工具栏上出现鲸鱼图标,最初通知您Docker Desktop正在启动:

macos安装docker_在macOS上安装Docker

And when it’s done, you will get a green light:

完成后,您将获得绿灯:

macos安装docker_在macOS上安装Docker

Now you will have the Docker command line tools installed.

现在,您将安装Docker命令行工具。

Open your terminal and run

打开终端并运行

docker version

to make sure everything worked fine.

确保一切正常。

macos安装docker_在macOS上安装Docker



翻译自: https://flaviocopes.com/docker-installation-macos/

macos安装docker