Updated the command for updating Compose setups (#16337)

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.
This commit is contained in:
Jamie Weston 2021-01-28 12:29:09 +00:00 committed by GitHub
parent 9757e3a3a2
commit 55df27924f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,10 +266,12 @@ docker-compose restart
To update your docker-compose image to the latest version and restart: To update your docker-compose image to the latest version and restart:
```bash ```bash
docker-compose pull docker-compose pull homeassistant
docker-compose up -d --build 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 ## 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: 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: