TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 220 forks source link

use -c instead of -v with command line #182

Closed UniqueUserajs closed 2 years ago

UniqueUserajs commented 2 years ago

Describe the bug
The docker example in README.md has the wrong option to indicate

The frequency of this issue

Steps to Reproduce
docker run \ -d --name godns --restart=always \ -v /path/to/config.json:/config.json \ timothyye/godns:latest

Your GoDNS configuration
N/A

Expected behavior
should not produce an error

Screenshots
N/A

Environment (please complete the following information):
N/A

Additional context
N/A

TimothyYe commented 2 years ago

Actually, the -v is an option provided by docker, it is used to mount the target path to the docker container.

TimothyYe commented 2 years ago

This command with -v option will mount the config file from your local disk to the container's target path /config.json.

And the executable file godns is also placed at the root directory of the container, by default, it tries to load the config file from the same directory, so /config.json will be loaded.