docker rm

Deletes a stopped container and its writable layer; the image stays.

In more detail

Add -f (force) to kill and remove a running container in one step, as an emergency shortcut rather than the normal path. Removing a container never deletes its image or named volumes; use docker image rm or docker volume rm for those.

Examples

docker rm -f note-one note-two
docker rm -f m01l03-broker

Related terms

Taught in

References