Description
The docker compose output is stuck and can't be closed with Ctrl+C when the build of a dependency container fails.
Killing the docker compose process from an outside shell seems to be the only workaround
Steps To Reproduce
For convenience sake, here's a repos with both files
https://github.com/Regrau/docker-compose-bug-report
git clone https://github.com/Regrau/docker-compose-bug-report && cd docker-compose-bug-report
docker compose up -d --build
docker-compose.yml
services:
web:
image: busybox
command: tail -f /dev/null
depends_on:
- db
db:
container_name: test
build:
dockerfile: Dockerfile
context: .
Dockerfile
FROM alpine:3.17
RUN exit 1
CMD [ "echo", "hello" ]
Compose Version
Docker Compose version 2.18.1
Docker Environment
Client: Docker Engine - Community
Version: 24.0.2
Context: colima
Debug Mode: false
Plugins:
compose: Docker Compose (Docker Inc.)
Version: 2.18.1
Path: /Users/regrau/.docker/cli-plugins/docker-compose
Server:
Containers: 15
Running: 10
Paused: 0
Stopped: 5
Images: 15
Server Version: 23.0.6
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
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: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 1fbd70374134b891f97ce19c70b6e50c7b9f4e0d
runc version: 860f061b76bb4fc671f0f9e900f7d80ff93d4eb7
init version:
Security Options:
seccomp
Profile: builtin
Kernel Version: 6.1.29-0-virt
Operating System: Alpine Linux v3.18
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 7.754GiB
Name: colima
ID: 1956e4ba-3df0-4b39-bce9-a04a0473cb57
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Anything else?
No response
Description
The docker compose output is stuck and can't be closed with Ctrl+C when the build of a dependency container fails.
Killing the docker compose process from an outside shell seems to be the only workaround
Steps To Reproduce
For convenience sake, here's a repos with both files
https://github.com/Regrau/docker-compose-bug-report
docker-compose.yml
Dockerfile
Compose Version
Docker Environment
Anything else?
No response