Docker CLI

docker rm

Remove a selected container. This example requires a stopped lab container you created; inspect before removing.

Formal Syntax & Structure

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

Parameters & Attributes

NameTypeDescription
CONTAINERname or IDStopped lab container selected for removal.

Return Value

CLI output

Removed container name or ID on success.

Working Example

Example Snippetdocker
docker rm bytemind-docker-intro
Docker Reference