tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Container Management > Docker > How to remove a running Container

How to remove a running Container

Author: Venkata Sudhakar

Docker is an open platform to develop, ship, and run containerized applications. It separates infra from application to ease application development and support anywhere development strategy. The below example shows how to start a stopped Container by using container name or container id.

01C:\>docker rm --help
02 
03Usage:  docker rm [OPTIONS] CONTAINER [CONTAINER...]
04 
05Remove one or more containers
06 
07Options:
08  -f, --force     Force the removal of a running container (uses SIGKILL)
09  -l, --link      Remove the specified link
10  -v, --volumes   Remove anonymous volumes associated with the container
11   
12C:\>docker rm 88b1ad152600 nice_pascal
1388b1ad152600
14nice_pascal
15 
16C:\>docker rm 8734e9e8b551
17Error response from daemon: You cannot remove a running container 8734e9e8b55111e899043c7c93b14d2f048155dc22a720908c710b2853702626. Stop the container before attempting removal or force remove
18 
19C:\>docker rm -f 8734e9e8b551
208734e9e8b551

 
  


  
bl  br