# 建立lxc範本(with docker)

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

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

```
pct start 101 
you can't start a CT if it's a template
```

從範本複製新的容器

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

<div align="left"><img src="/files/-LpLdG31i6J2VW68xd6G" alt="複製中..."></div>

完成後的新容器，預設就帶有docker

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

測試安裝portainer，ok

```
docker run -d --privileged --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --restart=always -v /docker/portainer/data:/data portainer/portainer
```


---

# 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/jian-li-lxc-fan-ben-with-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.
