# Synology 安裝Portainer 管理Docker

##### **安裝Docker和Portainer**

**套件中心搜尋`docker`,DSM7.2之後已改名`Container Manager`，安裝套件**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/nYwimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/nYwimage.png)

**docker資料夾新增`portainer`**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/pZMimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/pZMimage.png)

**進入Synology Shell內切換root帳號執行**

```
docker run -d --name=portainer \
-p 8000:8000 \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /volume1/docker/portainer:/data \
--restart=always \
6053537/portainer-ce:latest
```

**確認容器已經執行**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/V7Rimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/V7Rimage.png)

**進入Portainer，`http://IP:9000`**

**點擊連接右邊編輯圖示**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/l6Timage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/l6Timage.png)

**輸入你的Synology IP並更新環境**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/QuXimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/QuXimage.png)

**安裝完成**