0chain / 0chain/zcnwebappscripts

chimney script: change mount point for portainer container

オープン
#123 コメント 0 件 リアクション 0 件 担当者 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」を探します。'/tmp/portainer_password'のマウント構成を特定し、ディレクトリとファイルのマウントの問題を理解します。Dockerまたはコンテナランタイムのドキュメントで正しいボリュームマウントの構文を確認し、それに応じてスクリプトを調整します。スクリプトを実行して変更をテストし、コンテナがエラーなしで再起動することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, shell
領域
cli, devops
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。