How to run docker daemon

I installed docker on CentOS 7 and created a dockerfile with the below content:

 FROM jenkins/jenkins:lts
 USER root
 VOLUME /var/run/docker.sock
 # install necessary packages to run docker
 RUN apt-get -y update && apt-get -y install curl \
 apt-transport-https ca-certificates curl gnupg2 \
 software-properties-common gedit maven docker.io \
 build-essential fakeroot dpkg-dev \
 libcurl4-openssl-dev

I built this image (docker build -t jenkins-docker) and created a container for jenkins (docker run -d -p 8080:8080 jenkins-docker).
When i test the docker binding as root user inside the newely created image i get this error : “Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”
So i run “dockerd” to run the docker daemon and it gives me
"failed to start daemon: error while opening volume store metadata database: timeout ".
How can i solve this ?