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..a7e61bbe5 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