Fix docker command (#18564)

This commit is contained in:
Pascal Vizeli 2021-07-20 17:24:39 +02:00 committed by GitHub
parent 3ba917f628
commit 86436ca1a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,11 +4,11 @@
content: | content: |
```bash ```bash
docker run --init -d \ docker run -d \
--name homeassistant \ --name homeassistant \
--privileged \ --privileged \
--restart=unless-stopped \ --restart=unless-stopped \
-v /etc/localtime:/etc/localtime:ro \ -e TZ=MY_TIME_ZONE \
-v /PATH_TO_YOUR_CONFIG:/config \ -v /PATH_TO_YOUR_CONFIG:/config \
--network=host \ --network=host \
{{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }} {{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }}
@ -34,12 +34,12 @@
```bash ```bash
# finally, start a new one # finally, start a new one
docker run --init -d \ docker run -d \
--name homeassistant \ --name homeassistant \
--restart=unless-stopped \ --restart=unless-stopped \
--privileged \ --privileged \
-e TZ=MY_TIME_ZONE \
-v /PATH_TO_YOUR_CONFIG:/config \ -v /PATH_TO_YOUR_CONFIG:/config \
-v /etc/localtime:/etc/localtime:ro \
--network=host \ --network=host \
{{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }} {{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }}
``` ```