Is there any command which can combine the docker stop
and docker rm
command together ? Each time I want to delete a running container, I need to execute 2 commands sequentially, I wonder if there is a combined command can simplify this process.
docker stop CONTAINER_ID
docker rm CONTATINER_ID
You can stop and remove the container with a single command the
$_
gives you the last echoFor removing a single container
For removing all containers