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
| Name | Type | Description |
|---|---|---|
| CONTAINER | name or ID | Stopped 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