[GH-ISSUE #1496] Latest image does not contain docker-init #1055

Closed
opened 2026-05-07 00:29:54 +02:00 by BreizhHardware · 4 comments

Originally created by @mcr-ksh on GitHub (Nov 24, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1496

🐞 Describe the bug
no docker-init in fontainer for docker compose file "init: true" setting.

💻 Components impacted

services:
  ntfy:
    image: binwiederhier/ntfy
    container_name: ntfy
    command:
      - serve
    environment:
      - TZ=UTC    # optional: set desired timezone
    user: UID:GID # optional: replace with your own user/group or uid/gid
    volumes:
      - /var/cache/ntfy:/var/cache/ntfy
      - /etc/ntfy:/etc/ntfy
    ports:
      - 80:80
    healthcheck: # optional: remember to adapt the host:port to your environment
        test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
        interval: 60s
        timeout: 10s
        retries: 3
        start_period: 40s
    restart: unless-stopped
    init: true # needed, if healthcheck is used. Prevents zombie processes

From the getting-started docker

💡 Screenshots and/or logs

root@irscontainer-prod [ ~/ntfy ]# docker compose up 
Attaching to ntfy
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
ntfy  | exec /sbin/docker-init: no such file or directory
Gracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
 ✔ Container ntfy  Stopped                                    
Originally created by @mcr-ksh on GitHub (Nov 24, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1496 :lady_beetle: **Describe the bug** no docker-init in fontainer for docker compose file "init: true" setting. :computer: **Components impacted** ``` services: ntfy: image: binwiederhier/ntfy container_name: ntfy command: - serve environment: - TZ=UTC # optional: set desired timezone user: UID:GID # optional: replace with your own user/group or uid/gid volumes: - /var/cache/ntfy:/var/cache/ntfy - /etc/ntfy:/etc/ntfy ports: - 80:80 healthcheck: # optional: remember to adapt the host:port to your environment test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] interval: 60s timeout: 10s retries: 3 start_period: 40s restart: unless-stopped init: true # needed, if healthcheck is used. Prevents zombie processes ``` From the getting-started docker :bulb: **Screenshots and/or logs** ``` root@irscontainer-prod [ ~/ntfy ]# docker compose up Attaching to ntfy ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory ntfy | exec /sbin/docker-init: no such file or directory Gracefully stopping... (press Ctrl+C again to force) [+] Stopping 1/1 ✔ Container ntfy Stopped ```
BreizhHardware 2026-05-07 00:29:54 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@luneth commented on GitHub (Nov 26, 2025):

Can you share your host's operating system and docker's version / source installed from?

In docker using Init: true relies on the host's init system if none is provided in container.

<!-- gh-comment-id:3579261599 --> @luneth commented on GitHub (Nov 26, 2025): Can you share your host's operating system and docker's version / source installed from? In docker using `Init: true` relies on the host's init system if none is provided in container.
Author
Owner

@mcr-ksh commented on GitHub (Nov 27, 2025):

image: binwiederhier/ntfy is the image.
Host is Ubuntu 24.04.

root@xx:/devel# cat /etc/apt/sources.list.d/docker.list
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable
root@xx:/devel# dpkg -l | grep docker
ii  docker-buildx-plugin                   0.29.1-1~ubuntu.24.04~noble             amd64        Docker Buildx plugin extends build capabilities with BuildKit.
ii  docker-ce                              5:28.5.1-1~ubuntu.24.04~noble           amd64        Docker: the open-source application container engine
ii  docker-ce-cli                          5:28.5.1-1~ubuntu.24.04~noble           amd64        Docker CLI: the open-source application container engine
ii  docker-ce-rootless-extras              5:28.5.1-1~ubuntu.24.04~noble           amd64        Rootless support for Docker.
ii  docker-compose-plugin                  2.40.1-1~ubuntu.24.04~noble             amd64        Docker Compose (V2) plugin for the Docker CLI.
rc  docker.io                              26.1.3-0ubuntu1~24.04.1                 amd64        Linux container runtime
<!-- gh-comment-id:3585461772 --> @mcr-ksh commented on GitHub (Nov 27, 2025): `image: binwiederhier/ntfy` is the image. Host is Ubuntu 24.04. ``` root@xx:/devel# cat /etc/apt/sources.list.d/docker.list deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable root@xx:/devel# dpkg -l | grep docker ii docker-buildx-plugin 0.29.1-1~ubuntu.24.04~noble amd64 Docker Buildx plugin extends build capabilities with BuildKit. ii docker-ce 5:28.5.1-1~ubuntu.24.04~noble amd64 Docker: the open-source application container engine ii docker-ce-cli 5:28.5.1-1~ubuntu.24.04~noble amd64 Docker CLI: the open-source application container engine ii docker-ce-rootless-extras 5:28.5.1-1~ubuntu.24.04~noble amd64 Rootless support for Docker. ii docker-compose-plugin 2.40.1-1~ubuntu.24.04~noble amd64 Docker Compose (V2) plugin for the Docker CLI. rc docker.io 26.1.3-0ubuntu1~24.04.1 amd64 Linux container runtime ```
Author
Owner

@luneth commented on GitHub (Nov 27, 2025):

Is docker-init present in your host's /sbin or /usr/libexec/docker directory?

I see you running Ubuntu, maybe apparmor is messing with docker's abilities?

<!-- gh-comment-id:3586944378 --> @luneth commented on GitHub (Nov 27, 2025): Is docker-init present in your host's /sbin or /usr/libexec/docker directory? I see you running Ubuntu, maybe apparmor is messing with docker's abilities?
Author
Owner

@mcr-ksh commented on GitHub (Nov 28, 2025):

It's there:

root@xx:/usr/libexec/docker# ls -al docker-init 
-rwxr-xr-x 1 root root 765064 Oct  8 14:17 docker-init
<!-- gh-comment-id:3588583239 --> @mcr-ksh commented on GitHub (Nov 28, 2025): It's there: ``` root@xx:/usr/libexec/docker# ls -al docker-init -rwxr-xr-x 1 root root 765064 Oct 8 14:17 docker-init ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1055
No description provided.