LinuxCommandLibrary

docker-rm

Remove one or more containers.

TLDR

Remove containers

$ docker rm [container1 container2 ...]
copy


Force remove a container
$ docker rm --force [container1 container2 ...]
copy


Remove a container and its volumes
$ docker rm --volumes [container]
copy


Display help
$ docker rm
copy

SYNOPSIS

docker rm [OPTIONS] CONTAINER [CONTAINER...]

DESCRIPTION

Alias for docker container rm.

OPTIONS

-f, --force[=false] Force the removal of a running container (uses SIGKILL)

-h, --help[=false] help for rm

-l, --link[=false] Remove the specified link

-v, --volumes[=false] Remove anonymous volumes associated with the container

SEE ALSO

docker(1)

Copied to clipboard