# 如何安裝

### 版本與作業系統 <a href="#version" id="version"></a>

我們要安裝的是Docker Community Edition \
\
Docker的網站本身提供了相當詳盡的[安裝指南](https://docs.docker.com/install/#supported-platforms)\
\
你可以選擇Ｍac或Windows甚至是你的Server上進行安裝

{% hint style="info" %}
本書使用的是Mac OS
{% endhint %}

### 測試 <a href="#testing" id="testing"></a>

若安裝沒有問題，可以在Mac上點選右上角的放大鏡，輸入terminal打開終端機\
\
Windows則是開始->命令提示字元來打開\
\
輸入你的第一個docker指令來測試是否順利安裝

```
$docker --version 

$docker info

```

畫面上顯示docker的版本及詳細資訊，恭喜你！你剛剛完成了Docker的第一步。<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dockereasytoturial.gitbook.io/docker_tutorial_in_30mins/how_to_install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
