single command to stop and remove docker container

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

11 Answers
11

Leave a Comment