title: Run Jenkins on different port on a docker container
body: <p>I'm trying to run Jenkins on docker by using a different port. By default Jenkins is running on port 8080, but this port is used by different service in my machine. I would like to run Jenkins on a different port.</p>
  <p>I have used the following command without any success:</p>
  <pre><code>docker run \
    -u root \
    --rm \
    -d \
    --name jenkins \
    -p 8081:8081 \
    -p 50000:50000 \
    --env JAVA_OPTS=&quot;--httpPort=8081&quot; \
    -v jenkins-data:/var/jenkins_home \
    -v /var/run/docker.sock:/var/run/docker.sock \
    jenkinsci/blueocean
  </code></pre>
  <p>Any ideas?</p>