Skip to content

Commit

Permalink
Updated the command for updating Compose setups (home-assistant#16337)
Browse files Browse the repository at this point in the history
For users with more than one service defined in their Docker Compose file, it's often preferable to update only that image - otherwise, running `up` may result in a restart of other, unrelated containers.
  • Loading branch information
jlweston committed Jan 28, 2021
1 parent 9757e3a commit 55df279
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/_docs/installation/docker.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,12 @@ docker-compose restart
To update your docker-compose image to the latest version and restart:

```bash
docker-compose pull
docker-compose up -d --build homeassistant
docker-compose pull homeassistant
docker-compose up -d
```

Note: the above will fetch the latest matching image for the `homeassistant` service only. To fetch all matching images for all services defined in the same `docker-compose.yaml` file, omit the service name from the first command.

## Exposing Devices

In order to use Z-Wave, Zigbee or other integrations that require access to devices, you need to map the appropriate device into the container. Ensure the user that is running the container has the correct privileges to access the `/dev/tty*` file, then add the device mapping to your Docker command:
Expand Down

0 comments on commit 55df279

Please sign in to comment.