Docker pull to install software

I am trying to install software and the instructions say to use the command:

docker pull name/name

After pressing Enter key I receive the error ‘Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?’. I researched on how to fix this and it was stated that launchctl is the equivalent to systemctl on MacOS because the command is supposed to be the following although I receive the same error:

system/launchctl start docker

Is anyone able to help me understand and learn how to install a docker container related software according to the instructions in the docs?