Scenario
- Balena deployment with two containers, A and B. Both are marked as
restart: unless-stopped
in thedocker-compose.yml
file. - Manually stop container A using the Balena console.
- Update an environment variable for container B.
Expected behaviour
Only container B should be restarted.
Observed behaviour
Both containers A and B are restarted.
Issue
Why are the unless-stopped
restart semantics for container A not being observed? It was manually stopped, so why is it being restarted? Is there a way to work around this?
Thanks,
Peter