0chain / 0chain/zcnwebappscripts
chimney script: change mount point for portainer container
- 主要語言
- Shell
- 星號
- 1
- 分支
- 2
- PR 合併指標
- 30 天內沒有已合併 PR
描述
```Error response from daemon:
Cannot restart container 2a286741f41: failed to c
reate task for container: failed to create shim task: OCI runtime create faile
d: runc create failed: unable to start container process: error during contain er init: error mounting
"/tmp/portainer _password" to rootfs at "/tmp/portainer
password": mount / tmp/portainer_password:/tmp/portainer_password (via /proc/s elf/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected
```
since we are using path from `/tmp` folder as a mount point, it is causing issue while restarting.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
尋找管理 Portainer 容器的 'chimney script',很可能在儲存庫內的 shell 腳本中。識別 '/tmp/portainer_password' 的掛載配置,理解目錄掛載與檔案掛載的問題。查閱 Docker 或容器執行階段的文件以獲取正確的卷掛載語法,並據此調整腳本。透過執行腳本來測試變更,確保容器重啟時不會出現錯誤。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- docker, shell
- 領域
- cli, devops
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100