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

Gitlab CIでDockerのimageをbuildしようとする際、 “` Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? “` というエラーがでた。その対処。