Closed
Description
Starting in docker compose 2.3.4, doing a docker compose down
with nothing previously started, now returns a non-zero return code - it was previously just a warning.
Steps to reproduce the issue:
- Create a docker-compose.yml e.g.
services:
test:
image: "debian:latest"
docker compose down -v
- Observe the 1 status code - e.g.
echo $?
Describe the results you received:
Returns 1 process exit code.
Describe the results you expected:
2.3.3 returns 0.
Additional information you deem important (e.g. issue happens only occasionally):
This is often used in build / test scripts to ensure everything is down and clear first. Erroring in this state is awkward.
It seems to be related to this commit: e7f5459
Output of docker compose version
:
Docker Compose version v2.3.4
Output of docker info
:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.8.1-docker)
compose: Docker Compose (Docker Inc., v2.3.4)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 112
Server Version: 20.10.14
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc version: v1.0.3-0-gf46b6ba
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
cgroupns
Kernel Version: 5.10.0-13-cloud-amd64
Operating System: Debian GNU/Linux 11 (bullseye)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.429GiB
Name: <REDACTED>
ID: 5LTS:JE6J:OC5L:C62O:MZZJ:GXVK:4JEY:XPH7:MT6C:MEHP:73QZ:GDUB
Docker Root Dir: /data/docker
Debug Mode: false
HTTPS Proxy: <REDACTED>
No Proxy: <REDACTED>
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Default Address Pools:
Base: 172.16.0.0/12, Size: 24
Metadata
Metadata
Assignees
Labels
No labels