0chain / 0chain/zcnwebappscripts

chimney script: change mount point for portainer container

Open
#123 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

```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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the 'chimney script' that manages the Portainer container, likely in a shell script within the repository. Identify the mount configuration for '/tmp/portainer_password' and understand the directory vs. file mount issue. Check Docker or container runtime documentation for correct volume mount syntax and adjust the script accordingly. Test the change by running the script to ensure the container restarts without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
cli, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.