Closed UniqueUserajs closed 2 years ago
Actually, the -v
is an option provided by docker, it is used to mount the target path to the docker container.
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.
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