-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Issue Description
some containers started fine, but it seems they can't be cleaned up after stop:
podman run --rm --name=archivebox [some -e options] [some -v options] -it -p 127.0.0.1:5000:8000 docker.io/archivebox/archivebox
then i ctrl-c'ed it, it quit with some errors:
ERRO[304183] cleaning up storage: removing container cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8 root filesystem: replacing mount point "/data/podman/overlay/069e0588bb42c6e74b8df8d0ad1e3f5faa00fa635b4a6be3acf8aa2429069784/merged": device or resource busy
ERRO[304183] Removing container cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8: cleaning up container cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8: unmounting container cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8 storage: cleaning up container cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8 storage: unmounting container cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8 root filesystem: replacing mount point "/data/podman/overlay/069e0588bb42c6e74b8df8d0ad1e3f5faa00fa635b4a6be3acf8aa2429069784/merged": device or resource busy
it cannot be restarted with the same command:
Error: creating container storage: the container name "archivebox" is already in use by cbd1019746f3201ccf55a28b89e2345cbd98e070550f0d922a1cfbeb3b4d22a8. You have to remove that container to be able to reuse that name: that name is already in use by an external entity, or use --replace to instruct Podman to do so.
but:
% podman stop archivebox
Error: no container with name or ID "archivebox" found: no such container
% podman rm archivebox
Error: container "archivebox" is mounted and cannot be removed without using force: container state improper
adding --replace doesn't help:
WARN[0000] Unmounting container "archivebox" while attempting to delete storage: replacing mount point "/data/podman/overlay/069e0588bb42c6e74b8df8d0ad1e3f5faa00fa635b4a6be3acf8aa2429069784/merged": device or resource busy
Error: removing storage for container "archivebox": replacing mount point "/data/podman/overlay/069e0588bb42c6e74b8df8d0ad1e3f5faa00fa635b4a6be3acf8aa2429069784/merged": device or resource busy
i have the same situation with multiple containers: started fine, and now cannot be stopped properly.
i have to add some context which may be related:
- containers used to start/stop properly and were running when…
- one day, the system was hard-rebooted (for a reason unrelated to podman)
- and now, those containers were able to start but not really to stop
i don't mind if the containers are lost but i don't want to lose the volumes
Steps to reproduce the issue
Steps to reproduce the issue
1.
2.
3.
Describe the results you received
Describe the results you received
Describe the results you expected
Describe the results you expected
podman info output
Client: Podman Engine
Version: 5.4.2
API Version: 5.4.2
Go Version: go1.24.2
Built: Fri May 9 02:43:40 2025
Build Origin: Debian
OS/Arch: linux/amd64Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting