Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

docker ps -a などのコマンドを実行した際,
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
とエラーがでることがある.
こういうときは,
sudo systemctl start docker
コマンドで,デーモンを再起動してみよう