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