# LXC run docker

於 Proxmox VE先建立一個  LXC，注意這個 LXC 必須是無特權容器（unprivileged）模式

<div align="left"><img src="/files/-LpLNXjhCB7zun1SvH0t" alt=""></div>

建立好容器，啟動前須設定這個 LXC 要支援巢狀，如下圖，選項 => 功能 => 勾選 keyctl 及 巢狀（nesting）

![](/files/-LpLO4bsxHq4e8k4ZCBF)

![](/files/-LpLOV6XtLLIhBVlpFi9)

進入LXC，安裝curl

```
apt install curl
curl -sSL https://get.docker.com | sh
```

<div align="left"><img src="/files/-LpLU24zxw3NbxAE0nkg" alt=""></div>

docker run hello-world


---

# 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/andoid-shou-ji/pomoxve/lxc-run-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.
