Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 1.17 KB

stop-and-start-docker-compose-if-youve-edited-your-compose-file.md

File metadata and controls

31 lines (29 loc) · 1.17 KB
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
stop-and-start-docker-compose-if-youve-edited-your-compose-file
docker
public
2024-01-05 09:23:26 -0800
2024-09-23 09:47:04 -0700
false
20240105172326
attachments/20240105172326.html
false
false
docker-compose
restart
docker
compose
Stop & Start Docker Compose if You've Edited Your Compose File
tech-note

I can never remember this, so for my future self, if you change your compose.yaml file, and then only docker compose restart, those changes will not be picked up. You must docker compose stop && docker compose up -d instead.

If you make changes to your compose.yml configuration, these changes are not reflected after running this command. For example, changes to environment variables (which are added after a container is built, but before the container's command is executed) are not updated after restarting.

docker compose restart | Docker Docs