-
Notifications
You must be signed in to change notification settings - Fork 254
docker compose stop SERVICE also stops dependencies #1571
Description
Description
docker compose stop SERVICE stops not only service, but also all of service's dependencies.
docker-compose stop SERVICE stops only the named service.
Steps to reproduce the issue:
- Have some service dependencies specified in docker-compose file.
- Start the service with dependencies
- Attempt to stop only the service and not its dependencies
Describe the results you received:
Multiple services began stopping.
Describe the results you expected:
Only the named service(s) should have stopped.
Additional information you deem important (e.g. issue happens only occasionally):
If this is the intended default behavior, then perhaps a flag (e.g. --only) should be included that allows docker compose stop --{flagname} SERVICE to provide the behavior of docker-compose stop SERVICE.
Output of docker version:
Client: Docker Engine - Community
Cloud integration: 1.0.12
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:13:00 2021
OS/Arch: darwin/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:15:47 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker context show:
default
Output of docker info:
n/a
Additional environment details (AWS ECS, Azure ACI, local, etc.):
n/a