Tools, FAQ, Tutorials:
"docker container rm" - Remove Container
How to remove a container from the Docker Engine with "docker container rm" command?
✍: FYIcenter.com
If a container is no longer needed, you can remove it from the Docker Engine
to save space using the "docker container rm" command.
1. Run "docker container list --all" command. You see 2 containers created from the same image, hello-world.
fyicenter$ docker container list --all CONTAINER ID IMAGE COMMAND STATUS NAMES 64e144db8c6c hello-world "/hello" Exited (0) 2 hours ago nervous_banach 96ce071457fc hello-world "/hello" Exited (0) 9 hours ago gracious_wilson
2. Remove the first container by its name, nervous_banach, to keep the second one.
fyicenter$ docker container rm nervous_banach nervous_banach fyicenter$ docker ps --all | grep hello CONTAINER ID IMAGE COMMAND STATUS NAMES 96ce071457fc hello-world "/hello" Exited (0) 9 hours ago gracious_wilson
⇒ "docker container rm ..." - Remove All Containers
⇐ "docker container stop/kill" - Stop/Kill Container
2019-04-12, 890👍, 0💬
Popular Posts:
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to create a new API on the Publisher Dashboard of an Azure API Management Service? If you are ne...
How to login to the Developer Portal internally by you as the publisher? Normally, the Developer Por...
How to create Hello-3.1.epub with WinRAR? I have all required files to create Hello-3.1.epub. To cre...