FahamLah

Commands

docker rm

docker rm [-f] <container>

Risk: Can lose work

What it does

Deletes a stopped container and the files inside it.

When to use it

When you won't need that container again.

Example

$ docker rm web

Remove web. Volumes stay.

$ docker rm -f web

Stop and remove a running one. Careful!