To delete a particular Docker container firstly you have to find out the CONTAINER ID or NAME by listing the all Docker containers.
When the container for deletion is identified it can be removed with the docker rm command.
From the command-line it is also possible to remove stopped (unused) Docker containers only or, if it is needed, you can force removal of the all Docker containers. (more…)