0chain / 0chain/zcnwebappscripts

chimney script: change mount point for portainer container

未关闭
#123 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。