From 55b3a63dc5e9e49e915ab29f3a0ff3ec0734256d Mon Sep 17 00:00:00 2001 From: qqgg231 Date: Thu, 6 Dec 2018 15:46:07 +0100 Subject: [PATCH] Added explanation to docker command config (#7720) * Added explanation to docker command config It took me an hour to find how to edit this command, so I add explanation * Minor change --- source/_docs/installation/docker.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_docs/installation/docker.markdown b/source/_docs/installation/docker.markdown index 5013025e267..17cde265ecd 100644 --- a/source/_docs/installation/docker.markdown +++ b/source/_docs/installation/docker.markdown @@ -24,6 +24,12 @@ $ docker run -d --name="home-assistant" -v /path/to/your/config:/config -v /etc/ $ docker run -d --name="home-assistant" -v /path/to/your/config:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant ``` +You need to replace `/path/to/your/config` with your path to the configuration, for example if you choose your configuration path to be `/home/pi/homeassistant`, then command would be: + +```bash +$ docker run -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant +``` + ### {% linkable_title macOS %} When using `docker-ce` (or `boot2docker`) on macOS, you are unable to map the local timezone to your Docker container ([Docker issue](https://github.com/docker/for-mac/issues/44)). Instead of `-v /etc/localtime:/etc/localtime:ro`, just pass in the timezone environment variable when you launch the container, e.g, `-e "TZ=America/Los_Angeles"`. Replace "America/Los_Angeles" with [your timezone](http://en.wikipedia.org/wiki/List_of_tz_database_time_zones).