mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Fix docker command (#18564)
This commit is contained in:
parent
3ba917f628
commit
86436ca1a7
@ -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' }}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user