see if docker is running or not code example
Example: 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
#to check if docker is installed run
$ docker --version
#to check if docker is running run command
$ systemctl status docker