docker clean all containers that are out of service or stopped.
docker container prune # WARNING! This will remove all stopped containers.
docker is a client for interacting with the daemon (see dockerd(8)) through the CLI.
The Docker CLI has over 30 commands. The commands are listed below and each has its own man page which explain usage and arguments.
To see the man page for a command run man docker .