"podman rm -f" gets the error "ERRO container has already been removed"

Solution Verified - Updated -

Issue

  • podman outputs the error when removing a container run with --rm option even though the container has been actually removed.
  • The error messages
    ERRO[0010] Error stopping container <container id> exec sessions: container has already been removed
    Error: error saving container <container id> state: container has already been removed
  • The error doesn't occur if "/sbin/init" is specified as a container process.

Environment

  • Red Hat Enterprise Linux 8.4
  • podman-3.0.1-6.module+el8.4.0+10607+f4da7515.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content