Update docker.markdown

This commit is contained in:
Pascal Vizeli 2019-08-09 08:56:12 +02:00 committed by GitHub
parent 0b9fb8ed33
commit a962ed8925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,8 @@ As the docker command becomes more complex, switching to `docker-compose` can be
image: homeassistant/home-assistant image: homeassistant/home-assistant
volumes: volumes:
- /PATH_TO_YOUR_CONFIG:/config - /PATH_TO_YOUR_CONFIG:/config
- /etc/localtime:/etc/localtime:ro environment:
- TZ=America/New_York
restart: always restart: always
network_mode: host network_mode: host
``` ```
@ -220,7 +221,7 @@ In order to use Z-Wave, Zigbee or other integrations that require access to devi
```bash ```bash
$ docker run --init -d --name="home-assistant" -v /PATH_TO_YOUR_CONFIG:/config \ $ docker run --init -d --name="home-assistant" -v /PATH_TO_YOUR_CONFIG:/config \
-v /etc/localtime:/etc/localtime:ro --device /dev/ttyUSB0:/dev/ttyUSB0 \ -e TZ=Australia/Melbourne --device /dev/ttyUSB0:/dev/ttyUSB0 \
--net=host homeassistant/home-assistant --net=host homeassistant/home-assistant
``` ```
@ -234,7 +235,6 @@ or in a `docker-compose.yml` file:
image: homeassistant/home-assistant image: homeassistant/home-assistant
volumes: volumes:
- /PATH_TO_YOUR_CONFIG:/config - /PATH_TO_YOUR_CONFIG:/config
- /etc/localtime:/etc/localtime:ro
devices: devices:
- /dev/ttyUSB0:/dev/ttyUSB0 - /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyUSB1:/dev/ttyUSB1 - /dev/ttyUSB1:/dev/ttyUSB1