Thomas Bertels 899b4a8409
Update cli.md: add dbus access for Raspberry (#28821)
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-11-24 11:04:01 +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 \
      -v /run/dbus:/run/dbus:ro \
      --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 \
      -v /run/dbus:/run/dbus:ro \
      --network=host \
      {{ site.installation.container }}:{{ include.tag | default: 'stable' }}
    

{% endtabbed_block %}