stop a container code example Example: stop docker container //Check if the container is running docker ps -a docker container stop {container-id}