Skip to content

[BUG] container [name] has no healthcheck configured when healthcheck.disabled = true #13522

@stavros-k

Description

@stavros-k

Description

Running this compose, with wait option, will error out.

truenas_admin@prometheus[~]$ sudo docker compose up --wait
[+] Running 2/3
 ✔ Network truenas_admin_default      Created                                                                                                                                                                                            0.0s
 ⠧ Container truenas_admin-another-1  Waiting                                                                                                                                                                                            0.7s
 ✔ Container truenas_admin-whoami-1   Healthy                                                                                                                                                                                            0.7s
container truenas_admin-another-1 has no healthcheck configured
services:
  whoami:
    image: ghcr.io/traefik/whoami:v1.11.0@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
  another:
    image: ghcr.io/traefik/whoami:v1.11.0@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
    healthcheck:
      disable: true

Steps To Reproduce

  1. Paste the above compose
  2. Run docker compose up --wait
  3. See error

Compose Version

Docker Compose version v2.38.1

Docker Environment

truenas_admin@prometheus[~]$ sudo docker info
Client: Docker Engine - Community
 Version:    28.3.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.25.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.38.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 45
  Running: 45
  Paused: 0
  Stopped: 0
 Images: 54
 Server Version: 28.3.1
 Storage Driver: overlay2
  Backing Filesystem: zfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 05044ec0a9a75232cad458027ca83437aae3f4da
 runc version: v1.2.5-0-g59923ef
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.12.33-production+truenas
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 24
 Total Memory: 60.54GiB
 Name: prometheus
 ID: 6ff4ffb0-f955-4aac-a47a-a58b283733fc
 Docker Root Dir: /mnt/.ix-apps/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false
 Default Address Pools:
   Base: 172.16.0.0/12, Size: 24
   Base: fdd0::/48, Size: 64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions