Docker 29 · Containers

Remove a container

Delete a stopped container. Add -f to remove a running one.

docker rm web

Caution: Data stored in the container's own filesystem is lost. Data in named volumes is kept.

Official Docker 29 documentation

More containers commands

All containers commands · Docker 29 cheatsheet

Was this page helpful?