- Run the following commands:
OS Commands Windows, macOS or Linux docker ps
docker stop <container id or container name>
Windows If you add the -it options to the Docker run command, you can also stop the Docker container by entering the following in the terminal where you started the Docker container. Control-C
macOS You can also stop the Docker container by entering the following in the terminal where you started the Docker container. Command-C
Linux You can also stop the Docker container by entering the following in the terminal where you started the Docker container. Control-C