Skip to content

Container cannot find config.json #2095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LksBrlt opened this issue Mar 28, 2025 · 1 comment
Open

Container cannot find config.json #2095

LksBrlt opened this issue Mar 28, 2025 · 1 comment

Comments

@LksBrlt
Copy link

LksBrlt commented Mar 28, 2025

Describe the bug

I set up watchtower to update an image from a private registry with the documentation from https://containrrr.dev/watchtower/private-registries/
When mounting the config.json as it is documented, the container starts, but does not scan any images. The debug logging shows the followeing:
"No credentials for : found" config_file=/config/config.json

It is therefore looking for the config file in /config/config.json but in the documentation it should be mounted like this:
- <PATH_TO_HOME_DIR>/.docker/config.json:/config.json

Steps to reproduce

  1. Create config.json in <PATH_TO_HOME_DIR>/.docker/config.json
  2. In compose.yaml file set
    • <PATH_TO_HOME_DIR>/.docker/config.json:/config.json
  3. make docker-compose up -d
  4. See error:
    "No credentials for : found" config_file=/config/config.json
  5. See logging:
    level=info msg="Session done" Failed=0 Scanned=0 Updated=0 notify=no

Expected behavior

It should find the config.json and be able to authenticate. When mounting it like this:
<PATH_TO_HOME_DIR>/.docker/config.json:/config/config.json it works

Screenshots

No response

Environment

  • Linux
  • x86_64
  • 27.4.1-ce

Your logs

"No credentials for : found" config_file=/config/config.json

Additional context

No response

Copy link

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant