The following will start the container in the background with ports 8080 and 50000 mapped from the host to the container. The first volume allows the docker client on the container to access the docker server on the host. The second volume will be used to run the docker install script.
docker run -d -p 8080:8080 -p 50000:50000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v scriptvol:/scripts \
--name jenkins jenkins/jenkins:lts