How to Stop and Remove Docker Containers

Jack Roper
DevOps.dev
Published in
6 min readNov 9, 2023

--

In this short article, we will take a look at how to perform various useful command line operations in Docker, showing how to start, list, stop and remove containers, and the various options available.

If you don't already have Docker installed, you can grab it from the official website: Docker Download. Once installed, to follow along with this article, pull the Ubuntu image from the Docker hub so we can use the image with the containers that we will manipulate, using the command:

docker pull ubuntu

--

--

A blog about DevOps & Cloud Tech. Specializing in Terraform, Kubernetes, Azure & Azure DevOps! ☁️