# 映像檔

## **Pull第一個映像檔**

**Docker 映像檔就是一個唯讀的模板。**\
**例如：一個映像檔可以包含一個完整的 ubuntu 作業系統環境，裡面僅安裝了 LAMP 或使用者需要的其它應用程式。**\
**映像檔用於建立 Docker 容器**\ <br>

### **docker images**&#x20;

**當我們第一次執行 docker images 檢視映像檔時，可以看到並沒有任何東西，所以，依需求找到你要的映像檔名稱，並pull它**<br>

**docker search 映像檔**\
**這裡下載了一個名為ubuntu的容器，若沒有特別指定版本，則會使用最新的映像檔(latest)**<br>

**docker pull ubuntu**&#x20;

```
docker images
REPOSITORY          TAG     IMAGE ID      CREATED    SIZE
ubuntu              latest  74f8760a2a8b  7 days ago 82.4MB
```

**雖然我們pull了一個名為ubuntu的映像檔案，但實際上，這個映像檔在docker中真正的名稱，是以其 IMAGE ID 保存（此處為 74f8760a2a8b）**<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/ying-xiang-dang.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.
