From 4cfa3be69eebd9ee932374cc727a2a1e8145580a Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Fri, 9 Mar 2018 20:51:28 +0100 Subject: [PATCH] add /etc/localtime to container to syncronize time --- README.md | 2 +- docs/installation.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cac43731d..51d7fc938 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ vi config.json **3. Build your docker image and run it** ```bash docker build -t freqtrade . -docker run --rm -v `pwd`/config.json:/freqtrade/config.json -it freqtrade +docker run --rm -v /etc/localtime:/etc/localtime:ro -v `pwd`/config.json:/freqtrade/config.json -it freqtrade ``` diff --git a/docs/installation.md b/docs/installation.md index fdd572824..b288fa1a7 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -129,7 +129,7 @@ docker images You can run a one-off container that is immediately deleted upon exiting with the following command (`config.json` must be in the current working directory): ```bash -docker run --rm -v `pwd`/config.json:/freqtrade/config.json -it freqtrade +docker run --rm -v /etc/localtime:/etc/localtime:ro -v `pwd`/config.json:/freqtrade/config.json -it freqtrade ``` In this example, the database will be created inside the docker instance and will be lost when you will refresh your image. @@ -152,6 +152,7 @@ mv tradesv3.sqlite ~/.freqtrade ```bash docker run -d \ --name freqtrade \ + -v /etc/localtime:/etc/localtime:ro \ -v ~/.freqtrade/config.json:/freqtrade/config.json \ -v ~/.freqtrade/tradesv3.sqlite:/freqtrade/tradesv3.sqlite \ freqtrade