aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
docker |
public |
2024-01-05 09:23:26 -0800 |
2024-09-23 09:47:04 -0700 |
false |
20240105172326 |
|
false |
false |
|
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.