This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
restart <service> will restart all dependent services #1685
Labels
compatibility
Compatibility with docker-compose
Description
In the old
docker-compose restart <service>
it only restarts that specific service.In
docker compose restart <service>
it will first restart services that depends on, including DB's. If healthchecks are used fordepends_on
, it'll then have to re-wait for dependent services to be ready again.Steps to reproduce the issue:
depends_on
Service 2.Describe the results you received:
Service2 will restart, and then Service1 will restart.
Describe the results you expected:
Only Service1 should be affected.
Additional information you deem important (e.g. issue happens only occasionally):
Using
Docker Compose version 2.0.0-beta.1
in Docker Desktop 3.3.3 (64133) on macOSOutput of
docker version
:Output of
docker context show
:You can also run
docker context inspect context-name
to give us more details but don't forget to remove sensitive content.The text was updated successfully, but these errors were encountered: