Docker delete

This command is used to delete any container either by name or ID. Put Make sure that the container is stopped before you remove it.

Usage

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

Example

$ sudo docker rm Your_Ubuntu_Container