title: Jenkins Docker container with root permissions?
body: <p>I want to build a jenkins docker container with root permissions so that i can us apt-get feature to install gradle.</p>
  
  <p>I am using this command to run jenkins on 8080 port but i also want to add gradle as enviornment variable : </p>
  
  <pre><code>docker run -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home jenkins
  </code></pre>
  
  <p>or what dockerfile i need to create and what to write in it so that jenkins also start running at 8080</p>