From 34e78a7400a618cb15282da7557fd05a1aef9f7d Mon Sep 17 00:00:00 2001 From: creslin <34645187+creslinux@users.noreply.github.com> Date: Wed, 23 May 2018 13:17:35 +0300 Subject: [PATCH] OSX docker start cmd updated New versions of Docker will not start in OSX using the cmd in these instructions as /etc/localtime cannot be mounted. The change provides an alternate command that does work. `docker run --rm -e TZ=`ls -la /etc/localtime | cut -d/ -f8-9` -v `pwd`/config.json:/freqtrade/config.json -it freqtrade` More info is in this thread: https://github.com/docker/for-mac/issues/2396 --- docs/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index a7e61bbe5..bba3ff66c 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -132,6 +132,12 @@ You can run a one-off container that is immediately deleted upon exiting with th docker run --rm -v /etc/localtime:/etc/localtime:ro -v `pwd`/config.json:/freqtrade/config.json -it freqtrade ``` +There is known issue in OSX Docker versions after 17.09.1, whereby /etc/localtime cannot be shared causing Docker to not start. A work-around for this is to start with the following cmd. + +```bash +docker run --rm -e TZ=`ls -la /etc/localtime | cut -d/ -f8-9` -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.