podman-rm(1) General Commands Manual podman-rm(1) (NAME) podman-rm - (SYNOPSIS) podman rm [] podman container rm [] (DESCRIPTION) podman rm . . . -f . (OPTIONS) --all, -a . -f . --cidfile=file file . . file --ignore . --depend . --filter, -f=filter . --filter . label . . : +---------------------+--------------------------------------------------------------------------------+ | | | +---------------------+--------------------------------------------------------------------------------+ |id | [] ( | | | CID | | | ) | +---------------------+--------------------------------------------------------------------------------+ |name | [] ( ) | +---------------------+--------------------------------------------------------------------------------+ |annotation | [] [=] | | | | +---------------------+--------------------------------------------------------------------------------+ |annotation! | [] [=] | | | | +---------------------+--------------------------------------------------------------------------------+ |label | [] [=] | | | | +---------------------+--------------------------------------------------------------------------------+ |label! | [] [=] | | | | +---------------------+--------------------------------------------------------------------------------+ |exited | [ ] | +---------------------+--------------------------------------------------------------------------------+ |status | [] : 'created' | | | 'initialized' 'running' 'stopped' 'paused' 'exited' | | | 'removing' 'stopping' 'unknown' | +---------------------+--------------------------------------------------------------------------------+ |ancestor | [ ] | | | | | | ( ) | +---------------------+--------------------------------------------------------------------------------+ |before | [] [] | | | | +---------------------+--------------------------------------------------------------------------------+ |since | [] [] | | | | +---------------------+--------------------------------------------------------------------------------+ |volume | [ ] [ ] | | | | +---------------------+--------------------------------------------------------------------------------+ |health | [] (healthy) (unhealthy) | +---------------------+--------------------------------------------------------------------------------+ |pod | [] | | | | +---------------------+--------------------------------------------------------------------------------+ |network | [] | +---------------------+--------------------------------------------------------------------------------+ |restart-policy | [] | | | ( 'no' 'on-failure' 'always' | | | 'unless-stopped') | +---------------------+--------------------------------------------------------------------------------+ |until | [ ] | | | | | | . | +---------------------+--------------------------------------------------------------------------------+ |command | [] | | | argv[0] | | | | +---------------------+--------------------------------------------------------------------------------+ |should-start-on-boot | [] | | | | | | . True | | | | | | 'always' 'unless-stopped' | | | | | | | +---------------------+--------------------------------------------------------------------------------+ --force, -f (paused). Buildah . OCI . --ignore, -i . ExecStop systemd . --cidfile . --latest, -l . : . ( ( WSL2) ) --time, -t=seconds . -1 . --time --force . --volumes, -v . podman volume create --volume podman run podman create . (EXAMPLES) : $ podman rm mywebserver : $ podman rm --depend mywebserver : $ podman rm mywebserver myflaskserver 860a4b23 : $ podman rm --cidfile ./cidfile-1 --cidfile /home/user/cidfile-2 : $ podman rm -f 860a4b23 ( ) SIGKILL: $ podman rm --time 2 --force 860a4b23 : $ podman rm --time 0 --force 860a4b23 : $ podman rm -f -a . ( ( WSL2) ): $ podman rm -f --latest : $ podman rm --filter name=test-alpine 34f997d354017a0076402c3a79245a5b8bd11b597c84385bec25ae8941fd5238 : $ podman rm --filter label=app=frontend 5a3694a13436168ea99490e74b489566c646d6a0db29868f57113298110d1b1c : $ podman rm --filter status=exited 4a3332649ed8bec1e0d82e113074b9a13d45582007aeac969c005992cc480a73 f8e85f84a749b205fb602895afa6ec8a866045ff27b82f843033712c8b93a2c9 7d17e850c9b172f11a3e20bab81da6fc694c35c2dc38d84083eb57869dcaca63 47972eb04aa7c77705b597a929957d1e8a392e00b44c0a2a7f88a01f9f860d11 : $ podman rm --filter ancestor=nginx 8a7668cdec27664559a7da55ed5cda101f904441f7245e248218580656b2bae3 0d297b336bf31d141c7720a791c45dafdb8b5033deaab12f29b88e5bff6b122d 134475ac5140687d1eefff19f937dc24755f6c18e37e11d61b1084b59f1bdbe2 : $ podman rm --filter volume=web-vol b3f4d4c6a67e2ef1e089efdc8ff3a47dba008eb0ff1e53ae60f59279cb43f9ba : $ podman rm --filter network=web-net 1c057cac90c0512df86197599eef5a9485afc900b1ade03c9739fa24c360bbda : $ podman rm --ignore mycontainer1 mycontainer2 nonexistent-container mycontainer1 mycontainer2 (EXIT STATUS) 0 1 2 125 (SEE ALSO) podman(1) (HISTORY) (Ryan Cole) rycole@redhat.com podman-rm(1)