To remove one stopped Docker container, run docker rm <container>. For a running container, stop it first with docker stop <container>, then remove it. Use docker rm -f <container> only when you intend to force-stop the process. To clear every stopped container, use docker container prune.
Remove one stopped container
Use the container’s name or ID:
docker rm my-container
The shorter docker rm command and the full docker container rm form remove one or more specified containers. Docker documents the command as “Remove one or more containers” in its container removal reference.
As an Amazon Associate I earn from qualifying purchases.
If the container is running, Docker will not remove it with this command unless you force removal. The orderly option is to stop it first.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Stop a running container before removing it
-
Stop the container:
docker stop my-container. -
Remove it:
docker rm my-container.
Docker sends the configured stop signal—SIGTERM by default—and then sends SIGKILL if the main process has not exited by the end of the grace period. The default timeout, when none is configured, is 10 seconds for Linux containers and 30 seconds for Windows containers; settings and platform can affect behavior. See Docker’s container stop reference.
#1 Best Overall
- Server 2022 Standard 16 Core
Force-remove a running container
When an orderly stop is not suitable, run:
docker rm -f my-container
Force removal sends SIGKILL to the container’s main process rather than allowing the normal stop grace period. Use it only when that abrupt termination is acceptable.
Remove all stopped containers
To remove every stopped container, run:
docker container prune
Docker asks for confirmation by default. Add --force to skip the prompt, or use a filter to narrow which stopped containers qualify. For example, this targets stopped containers older than 24 hours:
docker container prune --filter "until=24h"
Check that a filter matches your intended cleanup before proceeding. Docker documents the command, confirmation behavior, and supported filters in its container prune reference.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Rank #2
- 【Advanced Home Data & Media Hub】For advanced home users who need phone backup, file storage, and centralized data management. Centralize family photos, 4K videos, movies, computer backups, and personal files in one place while running multiple apps for home entertainment and everyday data management. Suitable for households with growing digital libraries and multiple NAS use cases.
- 【Built for Creators, Media Servers & Advanced Apps】Powered by the Intel N100 Quad-Core CPU, 8GB DDR5 RAM, 2.5GbE networking, and dual M.2 NVMe slots, DXP2800 handles large files and heavier workloads with ease. Run Docker, virtual machines, and media server applications compatible with Plex—ideal for content creators, tech enthusiasts, and advanced home users managing 4K videos, RAW photos, personal media libraries, and multiple NAS apps.
- 【Up to 80TB for Growing Digital Libraries】 Supports up to 80TB of storage using two HDD bays and two M.2 NVMe SSD slots for family photos, movies, RAW photos, 4K videos, work files, and device backups. AI photo management supports recognition of people, objects, scenes, and locations, album organization, and duplicate photo detection. HDDs and SSDs are not included.
- 【AI-powered Home Surveillance】Turn DXP2800 into a centralized home surveillance hub by connecting compatible network cameras and storing recordings locally on your NAS. AI-powered features include Face Recognition, People Detection, and Pet Detection, helping advanced home users review important events more efficiently while managing home surveillance and personal data in one place.
- 【One data Center Across Your Devices】Keep files from desktops, laptops, phones, tablets, and other devices together instead of scattered across cloud accounts and external drives. Access, back up, organize, and share data across Windows, macOS, Android, iOS, web browsers, and compatible smart TVs—ideal for creators and advanced home users working across multiple devices.
Know what happens to container data and volumes
Removing a container deletes its writable container filesystem. If you need data to persist beyond the container’s lifetime, it should be stored in a volume or otherwise kept outside that filesystem.
-
Anonymous volumes:
docker rm -v my-containerremoves anonymous volumes associated with the container. Without-v, those volumes are not removed by this command. -
Named volumes:
docker rm -vleaves named volumes in place. Removing a container is not the same as deleting a named volume.Rank #3
SaleZimaBoard 2 Home Server, Intel N150, Build Your First Real Server- Server-Class Home Server Built for 24/7 Workloads - Designed as a purpose-built home server rather than general-purpose SBCs, Mini PCs, entry NAS systems, or routing-only devices. As a compact, pocket-sized single board server platform, ZimaBoard 2 832 combines x86 architecture, quad-core performance up to 3.6GHz, 8GB DDR5 memory, and 32GB eMMC storage for reliable always-on home servers, homelabs, and self-hosted workloads.
- PCIe 3.0 x4 Expansion for Real Server Builds - Built as a server-class platform with native PCIe expansion, ZimaBoard 2 features a full PCIe 3.0 x4 slot for high-speed, low-latency upgrades beyond USB-based limitations. Supports 10GbE NICs, NVMe adapters, GPUs, and AI accelerators to build scalable home servers, homelabs, and advanced self-hosted systems—offering greater expansion flexibility than typical SBCs, Mini PCs, and entry-level NAS devices.
- Native Dual SATA & Dual 2.5GbE Networking - Built with server-class storage and networking I/O, ZimaBoard 2 integrates dual SATA ports for direct HDD/SSD connectivity and dual 2.5GbE Ethernet for high-throughput, low-latency networking. This architecture enables reliable DIY NAS, fast storage, routing, and multi-service home server deployments—while avoiding USB-based performance constraints common in ARM SBCs, Raspberry Pi–based setups, Mini PCs, and entry-level NAS devices.
- ZimaOS Preinstalled + Wide OS Compatibility - Comes preinstalled with ZimaOS for a clean, ad-free private cloud experience—centralized file dashboard, automatic backups, P2P downloads, private photo/video sharing, 500+ plug-ins, and secure on-device AI that keeps your data at home. Also supports TrueNAS, Proxmox, Debian, Ubuntu Server, pfSense, OpenWrt, and Linux containers, making it perfect for Plex media servers, Pi-hole, firewalls, backups, Docker labs, home-cloud services, and multi-service deployments.
- All-in-One NAS, Router, Docker & Homelab Server - Replace multiple devices with one low-power, fanless system. ZimaBoard 2 can serve as a NAS, router, Docker host, firewall, media server, or homelab node—delivering a flexible, open alternative to ARM SBCs, Mini PCs, and entry-level NAS systems.
-
Volumes in use: A volume that is still in use cannot be removed with
docker volume rm. Check which containers use it before attempting separate volume cleanup.Free tools Windows power users keep installed
One-click scans. No signup required.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Docker’s container rm reference describes the volume option; the volume rm reference explains removal of volumes.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Remove containers created by Docker Compose
For stopped service containers in a Compose project, use:
Rank #4
- Entry-level NAS Home Storage: The UGREEN NAS DH4300 Plus is an entry-level 4-bay NAS that's ideal for home media and vast private storage you can access from anywhere and also supports Docker but not virtual machines. You can record, store, share happy moment with your families and friends, which is intuitive for users moving from cloud storage, or external drives to create your own private cloud, access files from any device.
- Smart Photo Backup & AI Album: Automatically back up photos and videos from your phone in real time and keep growing family memories organized with AI-powered photo albums. Semantic search, custom learning, and recognition of people, objects, pets, and similar photos help you quickly find the moments you want. Duplicate photo removal also helps keep your library organized—ideal for families and users with large photo collections.
- User-Friendly App & Easy Setup: Connect quickly via NFC, set up simply and share files fast on Windows, macOS, Android, iOS, web browsers, and smart TVs. You can access data remotely from any of your mixed devices. What's more, UGREEN NAS enclosure comes with beginner-friendly user manual and video instructions to ensure you can easily take full advantage of its features.
- More Cost-effective Storage Solution: Unlike cloud storage with recurring monthly fees, A UGREEN NAS enclosure requires only a one-time purchase for long-term use. For example, you only need to pay $629.99 for a NAS, while for cloud storage, you need to pay $719.88 per year, $1,439.76 for 2 years, $2,159.64 for 3 years, $7,198.80 for 10 years. You will save $6,568.81 over 10 years with UGREEN NAS! *NAS cost based on DH4300 Plus + 12TB HDD; cloud cost based on 12TB plan (e.g. $59.99/month).
- Your Data, You Control:No third-party clouds, no hidden access, UGREEN NAS provides a more secure and private data storage solution. It stores data locally on your private hard drives and does automatic backups. Thus, you can keep full control over it. The advanced encryption is TRUSTe certified in the United States and is awarded the first (and only) ETSI EN 303 645 certification mark for NAS products by TÜV SÜD Group.
docker compose rm
Add -s if Compose should stop the service containers before removing them. Add -v if you also intend to remove associated anonymous volumes. Compose removal preserves anonymous volumes unless -v is supplied; data held only in the removed container filesystem is lost. Read the Compose rm reference before removing volumes.
Choose container cleanup, not broader system pruning
docker system prune is not a container-only cleanup command. It removes unused containers and can also remove other unused Docker resources, including networks, images, and build cache. Volumes are excluded by default; adding --volumes includes anonymous volume pruning. Use docker container prune when the goal is specifically to remove stopped containers. See Docker’s system prune reference.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesAutomatically remove a one-off container when it exits
For a container that should not remain after its process finishes, add --rm when starting it:
docker run --rm ...
Docker removes the container after it exits and removes associated anonymous volumes; named volumes are retained. This option is useful for temporary or one-off runs where you do not need to inspect or restart the stopped container later. See the container run reference.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




