how to see if a container is running in docker code example Example 1: check if docker is running systemctl status docker Example 2: docker check running containers docker ps -a