|
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.
03 | Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...] |
05 | Remove one or more containers |
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 |
12 | C:\>docker rm 88b1ad152600 nice_pascal |
16 | C:\>docker rm 8734e9e8b551 |
17 | Error response from daemon: You cannot remove a running container 8734e9e8b55111e899043c7c93b14d2f048155dc22a720908c710b2853702626. Stop the container before attempting removal or force remove |
19 | C:\>docker rm -f 8734e9e8b551 |
|
|