I've blindly followed some podman tutorial (German), which tricked me into creating a Kubernetics container.
I guess these commands caused that:
$ podman pod create --name somename
$ podman run --detach --pod=somename alpine:latest top
So I accidentally created that and even after podman system prune -a
or so, the image k8s.gcr.io/pause
and a container that calls itself an „infra container” and refuses to be removed remains.
Here some commands:
$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
[…]
k8s.gcr.io/pause 3.2 80d28bedfe5d 5 months ago 688 kB
$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a19af97ae7ca k8s.gcr.io/pause:3.2 26 hours ago Created 6e40c6882a16-infra
$ podman rm 6e40c6882a16-infra
Error: container a19af97ae7caa0372394af71c9b10a66dd373d699d8a60d81ff7bf8c1749d3d4 is the infra container of pod 6e40c6882a16f884ee953beb4c36a548590a06006c502e00653e807c474ffaa6 and cannot be removed without removing the pod
$ podman rmi k8s.gcr.io/pause:3.2
Error: 1 error occurred:
* could not remove image 80d28bedfe5dec59da9ebf8e6260224ac9008ab5c11dbbe16ee3ba3e4439ac2c as it is being used by 1 containers: image is being used
Note I do not use kubectl
– nor do I have this installed.
So this answer for Kubernetics did not help me.
0 Answers