docker build -t local_jenkins .
mkdir -p /opt/docker/jenkins/jenkins_home
chmod 755 /opt/docker/jenkins/jenkins_home
chown <USER> /opt/docker/jenkins/jenkins_home
docker run --name jenkins -i -d -p 8787:8080 -p 50000:50000 -v /opt/docker/jenkins/jenkins_home:/var/jenkins_home:rw --privileged local_jenkins