Skip to content
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

Unable to load the configuration file [/config/dnscrypt-proxy.toml] #26

Closed
HarvsG opened this issue Jul 9, 2021 · 1 comment
Closed

Comments

@HarvsG
Copy link

HarvsG commented Jul 9, 2021

services:
  dnscrypt-proxy:
    container_name: dnscrypt-proxy
    image: klutchell/dnscrypt-proxy:latest
    volumes:
      - ./dnscrypt-proxy/:/config/
    restart: unless-stopped
    networks:
      pihole_net:
        ipv4_address: 172.16.251.6

networks:
  pihole_net:
    name: pihole_net
    driver: bridge
    ipam:
      config:
        - subnet: 172.16.251.0/24
          gateway: 172.16.251.1

fails to start with error:
sudo docker logs dnscrypt-proxy:

[2021-07-09 17:15:52] [FATAL] Unable to load the configuration file [/config/dnscrypt-proxy.toml] -- Maybe use the -config command-line switch?
[2021-07-09 17:16:18] [FATAL] Unable to load the configuration file [/config/dnscrypt-proxy.toml] -- Maybe use the -config command-line switch?
[2021-07-09 17:17:11] [FATAL] Unable to load the configuration file [/config/dnscrypt-proxy.toml] -- Maybe use the -config command-line switch?

If I download and manually add https://raw.githubusercontent.com/klutchell/dnscrypt-proxy/main/dnscrypt-proxy.toml then the issue is resolved. But for some reason if the folder is mounted the container fails to start

@klutchell
Copy link
Owner

This container won't install a config file for you if you mount a configuration directory, you are expected to provide your own file in that case. The default configuration is only used when a volume isn't mounted, so your process of manually downloading and mounting the config file is correct!

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

No branches or pull requests

2 participants