> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/pomoxve/jian-li-lxc-fan-ben-with-docker.md).

# 建立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
```
