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 1/2] 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. From 318c9734616eabda33c517cbf21c6a00e28c42cb Mon Sep 17 00:00:00 2001 From: creslin <34645187+creslinux@users.noreply.github.com> Date: Wed, 23 May 2018 15:20:16 +0300 Subject: [PATCH 2/2] Update to installation.md Added link to Docker issue on OSX with greater detail of the problem and work-around. --- docs/installation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/installation.md b/docs/installation.md index bba3ff66c..be8e2e501 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -137,6 +137,7 @@ There is known issue in OSX Docker versions after 17.09.1, whereby /etc/localtim ```bash docker run --rm -e TZ=`ls -la /etc/localtime | cut -d/ -f8-9` -v `pwd`/config.json:/freqtrade/config.json -it freqtrade ``` +More information on this docker issue and work-around can be read here: https://github.com/docker/for-mac/issues/2396 In this example, the database will be created inside the docker instance and will be lost when you will refresh your image.