# 安裝 docker

## **安裝**

**官方網站上有各種環境下的** [**安裝指南**](https://docs.docker.com/installation/#installation)**，這裡主要介紹下 Ubuntu (以下方法也適用 Debian Raspberry...)**<br>

**當我們依照**[**系統安裝頁面**](https://docs.google.com/document/d/1tYx1LLvFbWn0hMfh5TsvdhrolqCsUw8Qmo4UUG0tLT0/edit?usp=sharing)**安裝好 ubuntuServer HOST 機器後，只要使用下面兩個指令，便可完成docker的安裝**

**先以 putty 登入系統，然後分別執行以下兩個指令**<br>

**curl -sSL <https://get.docker.com> | sudo sh**<br>

**sudo usermod -aG docker your-user（這裡改成你的使用者名稱）**<br>

**sudo reboot**<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://kawsing.gitbook.io/opensystem/docker-cong-an-zhuang-dao-ying-yong-ru-men-pian/an-zhuang-docker.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.
