check if docker container is running code example
Example 1: check if docker is running
systemctl status docker
Example 2: docker check running containers
docker ps -a
Example 3: docker ps view command
docker ps --no-trunc
Example 4: how to test if docker is running from boot
#to check if docker is installed run
$ docker --version
#to check if docker is running run command
$ systemctl status docker