docker daemon not running code example
Example 1: Start the Docker daemon
sudo systemctl start docker
sudo service docker start
Example 2: docker daemon is not running
Net stop com.docker.service
Net start com.docker.service
Example 3: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
sudo dockerd
Example 4: this error may indicate that the docker daemon is not running
Open powershell as admin and use : & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
Example 5: htcondor daemons not running
If HTCondor daemons are currently running, but need to be killed and
newly invoked, the condor_restart tool does this. This would be the
case for a new value of a configuration variable for which using
condor_reconfig is inadequate.
To restart all daemons on all machines in the pool,
condor_restart -all
To restart all daemons on a single machine in the pool,
condor_restart <hostname>
where <hostname> is replaced by the host name of the machine to be restarted.