You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have strange problem, that after every restart of my qnap config file with login and passwords inside for watchtower is changing from file into open folder. So after every restart i must delete that folder and create new file from ssh. When using script which after every restart tries to do it automatically it doesn't see that directory in my case /root/.docker/config.json.
My script is called by RunLast mathod which calls scripts after complete qnap restart with fully started enviroment.
script:
`RunLast (20230112)
[Wed Jan 10 18:36:06 CET 2024] begin "start" scripts ...
[Wed Jan 10 18:36:06 CET 2024] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/10-crontab_restart.sh'" ...
[Wed Jan 10 18:36:12 CET 2024] => exitcode: (0)
[Wed Jan 10 18:36:12 CET 2024] => stdout: "Stopping periodic command scheduler: crond.
Starting periodic command scheduler: crond."
[Wed Jan 10 18:36:12 CET 2024] => stderr: ""
[Wed Jan 10 18:36:12 CET 2024] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/20-docker_restart.sh'" ...
[Wed Jan 10 18:41:27 CET 2024] => exitcode: (1)
[Wed Jan 10 18:41:27 CET 2024] => stdout: "watchtower
Login Succeeded
Login Succeeded
gotify"
[Wed Jan 10 18:41:27 CET 2024] => stderr: "rmdir: '/root/.docker/config.json': No such file or directory
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /share/homes/admin/.docker/config.json.
Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/.docker/config.json" to rootfs at "/config.json": mount /root/.docker/config.json:/config.json (via /proc/self/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 type
Error: failed to start containers: watchtower"
[Wed Jan 10 18:41:27 CET 2024] end "start" scripts`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have strange problem, that after every restart of my qnap config file with login and passwords inside for watchtower is changing from file into open folder. So after every restart i must delete that folder and create new file from ssh. When using script which after every restart tries to do it automatically it doesn't see that directory in my case /root/.docker/config.json.
My script is called by RunLast mathod which calls scripts after complete qnap restart with fully started enviroment.
script:
#!/bin/bash
PATH=/opt/bin:/opt/sbin:/share/CACHEDEV1_DATA/.qpkg/container-station/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/root/.docker:$PATH
sleep 300s
docker stop gotify
sleep 3s
rm -r /root/.docker/config.json
rmdir --ignore-fail-on-non-empty /root/.docker/config.json
docker stop watchtower
sleep 3s
docker login -u lukjod -p *************
sleep 3s
docker login ghcr.io/haveagitgat/tdarr -u lukjod -p ghp_C3Zu6lnz1111111111111111
sleep 3s
docker start gotify
sleep 3s
docker start watchtower
log
`RunLast (20230112)
[Wed Jan 10 18:36:06 CET 2024] begin "start" scripts ...
[Wed Jan 10 18:36:06 CET 2024] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/10-crontab_restart.sh'" ...
[Wed Jan 10 18:36:12 CET 2024] => exitcode: (0)
[Wed Jan 10 18:36:12 CET 2024] => stdout: "Stopping periodic command scheduler: crond.
Starting periodic command scheduler: crond."
[Wed Jan 10 18:36:12 CET 2024] => stderr: ""
[Wed Jan 10 18:36:12 CET 2024] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/20-docker_restart.sh'" ...
[Wed Jan 10 18:41:27 CET 2024] => exitcode: (1)
[Wed Jan 10 18:41:27 CET 2024] => stdout: "watchtower
Login Succeeded
Login Succeeded
gotify"
[Wed Jan 10 18:41:27 CET 2024] => stderr: "rmdir: '/root/.docker/config.json': No such file or directory
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /share/homes/admin/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /share/homes/admin/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/.docker/config.json" to rootfs at "/config.json": mount /root/.docker/config.json:/config.json (via /proc/self/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 type
Error: failed to start containers: watchtower"
[Wed Jan 10 18:41:27 CET 2024] end "start" scripts`
Can someone help?
Beta Was this translation helpful? Give feedback.
All reactions