Skip to content

podman-compose down does not kill the processes (alpine) #1350

@v3xro

Description

@v3xro

Issue Description

^C
[backend]  | container `7239a6db9e84e4a5a008feead534e835c231995be2ee6026ac17ce526ade790c` does not exist: open `/run/user/1000/crun/7239a6db
9e84e4a5a008feead534e835c231995be2ee6026ac17ce526ade790c/status`: No such file or directory
[backend]  | time="2025-12-12T10:06:54Z" level=error msg="forwarding signal 2 to container 7239a6db9e84e4a5a008feead534e835c231995be2ee6026ac1
7ce526ade790c: sending signal to container 7239a6db9e84e4a5a008feead534e835c231995be2ee6026ac17ce526ade790c: `/usr/bin/crun kill 7239a6db9e84e
4a5a008feead534e835c231995be2ee6026ac17ce526ade790c 2` failed: exit status 1"
[frontend] | container `367c9aacdd9a422a965e67eefd2cf3242be8b46d465d08c87c71bdc5a38089ff` does not exist: open `/run/user/1000/crun/367c9aacdd
9a422a965e67eefd2cf3242be8b46d465d08c87c71bdc5a38089ff/status`: No such file or directory
[frontend] | time="2025-12-12T10:06:54Z" level=error msg="forwarding signal 2 to container 367c9aacdd9a422a965e67eefd2cf3242be8b46d465d08c87c7
1bdc5a38089ff: sending signal to container 367c9aacdd9a422a965e67eefd2cf3242be8b46d465d08c87c71bdc5a38089ff: `/usr/bin/crun kill 367c9aacdd9a4
22a965e67eefd2cf3242be8b46d465d08c87c71bdc5a38089ff 2` failed: exit status 1"
angrylemon:~$ podman-compose down
ERRO[0000] Refreshing container 367c9aacdd9a422a965e67eefd2cf3242be8b46d465d08c87c71bdc5a38089ff: acquiring lock 1 for container 367c9aacdd9a4
22a965e67eefd2cf3242be8b46d465d08c87c71bdc5a38089ff: file exists
ERRO[0000] Refreshing container 7239a6db9e84e4a5a008feead534e835c231995be2ee6026ac17ce526ade790c: acquiring lock 6 for container 7239a6db9e84e
4a5a008feead534e835c231995be2ee6026ac17ce526ade790c: file exists
ERRO[0000] Refreshing pod 32552c250e57c9ef1badb0c0df0679514dd27ff1fff432c18af35d3dd8132aee: retrieving lock 0 for pod 32552c250e57c9ef1badb0c0
df0679514dd27ff1fff432c18af35d3dd8132aee: file exists
ERRO[0000] Refreshing volume 3f2a8884c34131a0ea0521ccd0279466f9c9fa61f385bd441e572ebaacb2f105: acquiring lock 3 for volume 3f2a8884c34131a0ea0
521ccd0279466f9c9fa61f385bd441e572ebaacb2f105: file exists
ERRO[0000] Refreshing volume 5a4c92554d998a9d9174cf44f2b412c096271341c56c3a54376f2f840b39d37b: acquiring lock 4 for volume 5a4c92554d998a9d917
4cf44f2b412c096271341c56c3a54376f2f840b39d37b: file exists
ERRO[0000] Refreshing volume 933decc3e6995c53e316ce6dd8ff2b63b18c4956ab4bfd9838548856662c91d5: acquiring lock 5 for volume 933decc3e6995c53e31
6ce6dd8ff2b63b18c4956ab4bfd9838548856662c91d5: file exists
ERRO[0000] Refreshing volume ee5d42a28f72497bdcd31e3460622304a46a70de6c9e86cb75fef4f7316af8b9: acquiring lock 2 for volume ee5d42a28f72497bdcd
31e3460622304a46a70de6c9e86cb75fef4f7316af8b9: file exists
controltower_frontend_1
controltower_backend_1
controltower_backend_1
controltower_frontend_1
32552c250e57c9ef1badb0c0df0679514dd27ff1fff432c18af35d3dd8132aee
controltower_default
angrylemon:~$ podman-compose down
Error: no container with name or ID "controltower_backend_1" found: no such container
Error: no container with name or ID "controltower_frontend_1" found: no such container
Error: no container with ID or name "controltower_backend_1" found: no such container
Error: no container with ID or name "controltower_frontend_1" found: no such container
Error: no pod with name or ID pod_controltower found: no such pod
angrylemon:~$ ps
   PID TTY          TIME CMD
  3187 pts/1    00:00:00 bash
  3326 pts/1    00:00:00 rootlessport
  3334 pts/1    00:00:00 exe
  3390 pts/1    00:00:07 rootlessport
  3400 pts/1    00:00:00 exe
127750 pts/1    00:00:00 ps
angrylemon:~$ kill  3326 3334 3390 3400
ls /run/user/1000
containers  crun  libpod  netns

Steps to reproduce the issue

  1. Install alpine (3.23.0) on VM
  2. Run a couple of containers using podman-compose as user 1000 (non-root)
  3. Ctrl-C

Describe the results you received

Exiting the podman-compose yields lots of errors about not being able to find the container state and ultimately the lack of actually killing the processes behind it.

Describe the results you expected

I expected a clean shutdown of the containers. Of course on alpine systemd is not available but nevertheless I do not see how this should affect the desired result.

podman info output

podman version 5.7.0
angrylemon:~# podman version
Client:       Podman Engine
Version:      5.7.0
API Version:  5.7.0
Go Version:   go1.25.3
Built:        Tue Nov 11 20:33:34 2025
OS/Arch:      linux/amd64

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

-bash-5.3$ podman info
host:
  arch: amd64
  buildahVersion: 1.42.0
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - dmem
  cgroupManager: cgroupfs
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.13-r0
    path: /usr/bin/conmon
    version: 'conmon version 2.1.13, commit: unknown'
  cpuUtilization:
    idlePercent: 99.64
    systemPercent: 0.12
    userPercent: 0.24
  cpus: 2
  databaseBackend: sqlite
  distribution:
    distribution: alpine
    version: 3.23.0
  eventLogger: file
  freeLocks: 4089
  hostname: angrylemon
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 6.18.0-3-virt
  linkmode: dynamic
  logDriver: k8s-file
  memFree: 5928927232
  memTotal: 8304738304
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.16.0-r0
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.16.0
    package: netavark-1.16.1-r0
    path: /usr/libexec/podman/netavark
    version: netavark 1.16.1
  ociRuntime:
    name: crun
    package: crun-1.25.1-r0
    path: /usr/bin/crun
    version: |-
      crun version 1.25.1
      commit: 156ae065d4a322d149c7307034f98d9637aa92a2
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt-2025.09.19-r0
    version: |
      pasta 2025_09_19.623dbf6
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  rootlessNetworkCmd: pasta
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /etc/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.3.3-r0
    version: |-
      slirp4netns version 1.3.3
      commit: 944fa94090e1fd1312232cbc0e6b43585553d824
      libslirp: 4.9.1
      SLIRP_CONFIG_VERSION_MAX: 6
      libseccomp: 2.6.0
  swapFree: 0
  swapTotal: 0
  uptime: 95h 53m 44.00s (Approximately 3.96 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /home/user/.config/containers/storage.conf
  containerStore:
    number: 2
    paused: 0
    running: 2
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/user/.local/share/containers/storage
  graphRootAllocated: 201414094848
  graphRootUsed: 14681803776
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 71
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/user/.local/share/containers/storage/volumes
version:
  APIVersion: 5.7.0
  Built: 1762893214
  BuiltTime: Tue Nov 11 20:33:34 2025
  GitCommit: ""
  GoVersion: go1.25.3
  Os: linux
  OsArch: linux/amd64
  Version: 5.7.0

Additional information

Alpine Linux 3.23.0 running on a VM, no systemd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions