2021-12-13 17:04:58 +01:00

1.1 KiB

{% tabbed_block %}

  • title: Install content: |

    docker run -d \
      --name homeassistant \
      --privileged \
      --restart=unless-stopped \
      -e TZ=MY_TIME_ZONE \
      -v /PATH_TO_YOUR_CONFIG:/config \
      --network=host \
      {{ site.installation.container }}:{{ include.tag | default: 'stable' }}
    
  • title: Update content: |

    # if this returns "Image is up to date" then you can stop here
    docker pull {{ site.installation.container }}:{{ include.tag | default: 'stable' }}
    
    # 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 -d \
      --name homeassistant \
      --restart=unless-stopped \
      --privileged \
      -e TZ=MY_TIME_ZONE \
      -v /PATH_TO_YOUR_CONFIG:/config \
      --network=host \
      {{ site.installation.container }}:{{ include.tag | default: 'stable' }}
    

{% endtabbed_block %}