From 55df27924f93b77868563d8006bb6b0d9a487a7a Mon Sep 17 00:00:00 2001 From: Jamie Weston Date: Thu, 28 Jan 2021 12:29:09 +0000 Subject: [PATCH] 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. --- source/_docs/installation/docker.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/_docs/installation/docker.markdown b/source/_docs/installation/docker.markdown index 345f2511674..1d2b1e8bd2c 100644 --- a/source/_docs/installation/docker.markdown +++ b/source/_docs/installation/docker.markdown @@ -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: