checking running docker container code example Example 1: check if docker is running systemctl status docker Example 2: docker check running containers docker ps -a