From 4474dca54309dc9c1b760f9606b4bbc6d6a4d295 Mon Sep 17 00:00:00 2001 From: komey Date: Mon, 8 Jun 2020 17:05:45 +0800 Subject: [PATCH] fix: remove default registry definition in Dockerfile. fix: change dfpath default value in dfdaemon config template. Signed-off-by: komey --- Dockerfile | 3 ++- docs/config/dfdaemon_config_template.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57d7c0a41..9d8aaea72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ COPY --from=builder /opt/dragonfly/df-client /opt/dragonfly/df-client EXPOSE 65001 # use the https://index.docker.io as default registry. -CMD [ "--registry", "https://index.docker.io" ] +# more cli config see https://github.com/dragonflyoss/Dragonfly/blob/master/docs/cli_reference/dfdaemon.md +# CMD [ "--registry", "https://index.docker.io" ] ENTRYPOINT [ "/opt/dragonfly/df-client/dfdaemon" ] diff --git a/docs/config/dfdaemon_config_template.yml b/docs/config/dfdaemon_config_template.yml index 736b6196a..5bbb724fe 100644 --- a/docs/config/dfdaemon_config_template.yml +++ b/docs/config/dfdaemon_config_template.yml @@ -61,7 +61,8 @@ ratelimit: 20M localrepo: /home/admin/.small-dragonfly/dfdaemon/data/ # dfget path, which is the relative file path for the dfdaemon -dfpath: ./dfget +# default /opt/dragonfly/df-client/dfget +dfpath: /opt/dragonfly/df-client/dfget # https options # port: 12001