mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-22 19:06:51 +00:00

Co-authored-by: Joakim Sørensen <joasoe@gmail.com> Co-authored-by: Franck Nijhof <git@frenck.dev>
926 B
926 B
{% tabbed_block %}
-
title: Install content: |
docker run --init -d \ --name homeassistant \ --restart=unless-stopped \ -v /etc/localtime:/etc/localtime:ro \ -v /PATH_TO_YOUR_CONFIG:/config \ --network=host \ {{ include.image }}
-
title: Update content: |
# if this returns "Image is up to date" then you can stop here docker pull {{ include.image }}
# stop the running container docker stop homeassistant
# remove it from Docker's list of containers docker rm homeassistant
# finally, start a new one docker run --init -d \ --name homeassistant \ --restart=unless-stopped \ -v /PATH_TO_YOUR_CONFIG:/config \ -v /etc/localtime:/etc/localtime:ro \ --network=host \ {{ include.image }}
{% endtabbed_block %}