Description
I have a compose with number of services. If all services started as expected, then everything works fine.
If one of services that other services depends on him failed, all process hangs forever and ctrl+c doesn't help
Steps To Reproduce
Here is docker compose with problem..
using command:
docker compose up -d
version: '3.7'
services:
reverse-proxy:
image: nginx
container_name: reverse-proxy
depends_on:
flyway:
condition: service_completed_successfully
flyway:
image: flyway/flyway
container_name: flyway
#command: "exit 1"`
Compose Version
Docker Compose version v2.18.1
Docker Compose version v2.17.0
Docker Environment
Client: Docker Engine - Community
Version: 24.0.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.10.5
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.18.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 13
Running: 10
Paused: 0
Stopped: 3
Images: 41
Server Version: 24.0.2
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: 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 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc version: v1.1.7-0-g860f061
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.19.0-42-generic
Operating System: Ubuntu 22.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.54GiB
Name: home-pc
ID: e3a5bfab-9c94-45c0-a155-7e03090b7e82
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
I have a compose with number of services. If all services started as expected, then everything works fine.
If one of services that other services depends on him failed, all process hangs forever and ctrl+c doesn't help
Steps To Reproduce
Here is docker compose with problem..
using command:
docker compose up -d
Compose Version
Docker Environment
Anything else?
No response