Skip to content

🐞 Bug: disabled healthcheck causes redeploy to fail #1338

@stavros-k

Description

@stavros-k

Bug Description

Given this stack, when I try to redeploy, I get this error:

Failed to redeploy project: failed to deploy project: container whoami-another-1 has no healthcheck configured
services:
  whoami:
    image: ghcr.io/traefik/whoami:v1.11.0@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
    user: "568:568"
    restart: always
    cap_drop: ["ALL"]
    group_add: ["568"]
    security_opt: ["no-new-privileges=true"]
    environment:
      WHOAMI_PORT_NUMBER: 8080
    ports:
      - 1236:8080

  another:
    image: ghcr.io/traefik/whoami:v1.11.0@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab
    user: "568:568"
    restart: always
    cap_drop: ["ALL"]
    group_add: ["568"]
    security_opt: ["no-new-privileges=true"]
    environment:
      WHOAMI_PORT_NUMBER: 8080
    healthcheck:
      disable: true
    ports:
      - 1238:8080

Removing this, fixes the issue and no error appears.

    healthcheck:
      disable: true

I did check the whoami dockerfile and there is no healthcheck defined, and I also used inspect which also does not show any healthcheck defined.
This suggests that presence of healthcheck key, assumes the container has healthcheck, regardless if it set to disabled.

Steps To Reproduce

See above

Expected Behavior

Not get the error.

Actual Behavior

Getting the mentioned error

Screenshots

No response

Arcane Version

v1.11.3

Installation Method

Docker Compose (Recommended)

Environment Type

Local Docker (Single instance)

Database Type

SQLite (Default)

Operating System

Linux

Docker Version

28.3.1

Browser & Version

No response

Relevant Logs or Error Messages

Docker Compose Configuration

Environment Configuration (.env file)

Additional Context

See linked PR to upstream that should fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions