<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to run Jenkins with docker?	</title>
	<atom:link href="https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/</link>
	<description>by Emil</description>
	<lastBuildDate>Sat, 25 May 2019 08:58:40 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>
		By: Emil		</title>
		<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-1008</link>

		<dc:creator><![CDATA[Emil]]></dc:creator>
		<pubDate>Sat, 25 May 2019 08:58:40 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=352#comment-1008</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-1007&quot;&gt;Pooja Kataria&lt;/a&gt;.

Hi!

What do you mean when you say that you &quot;have to run the Jenkins in docker with different user&quot;? With a different user than the default one in the host system (e.g. not as user &quot;ubuntu&quot; with the UID 1000)? Or you have to change user &quot;jenkins&quot; in the image to another one?

Anyway, independently from that, when you set up your Jenkins in docker, you should be able to run any command in the build step (I assume that you mean some shell scripts as a build step) without any problem and without necessity of adding some &quot;su USER&quot; or something like that. All build steps should &quot;inherit&quot; the user from the container. Like for normall installation.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-1007">Pooja Kataria</a>.</p>
<p>Hi!</p>
<p>What do you mean when you say that you &#8220;have to run the Jenkins in docker with different user&#8221;? With a different user than the default one in the host system (e.g. not as user &#8220;ubuntu&#8221; with the UID 1000)? Or you have to change user &#8220;jenkins&#8221; in the image to another one?</p>
<p>Anyway, independently from that, when you set up your Jenkins in docker, you should be able to run any command in the build step (I assume that you mean some shell scripts as a build step) without any problem and without necessity of adding some &#8220;su USER&#8221; or something like that. All build steps should &#8220;inherit&#8221; the user from the container. Like for normall installation.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pooja Kataria		</title>
		<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-1007</link>

		<dc:creator><![CDATA[Pooja Kataria]]></dc:creator>
		<pubDate>Fri, 24 May 2019 11:01:53 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=352#comment-1007</guid>

					<description><![CDATA[Hi,

I have to run the Jenkins in docker with different user .So that when i add any command in the Build Step in the New item it should use that user ?
Can you help me how can i achieve this ?]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I have to run the Jenkins in docker with different user .So that when i add any command in the Build Step in the New item it should use that user ?<br />
Can you help me how can i achieve this ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Emil		</title>
		<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-466</link>

		<dc:creator><![CDATA[Emil]]></dc:creator>
		<pubDate>Fri, 16 Nov 2018 10:56:13 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=352#comment-466</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-464&quot;&gt;Dali&lt;/a&gt;.

Hi, Dali!

Thanks for feedback! Yes, you&#039;re right, --rm it&#039;s very useful when you use a standard docker command. I&#039;d prefer to use docker-compose on a daily basis work, so I forgot to add this option to my post. But I&#039;ll fix that asap! :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-464">Dali</a>.</p>
<p>Hi, Dali!</p>
<p>Thanks for feedback! Yes, you&#8217;re right, &#8211;rm it&#8217;s very useful when you use a standard docker command. I&#8217;d prefer to use docker-compose on a daily basis work, so I forgot to add this option to my post. But I&#8217;ll fix that asap! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dali		</title>
		<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-464</link>

		<dc:creator><![CDATA[Dali]]></dc:creator>
		<pubDate>Thu, 15 Nov 2018 10:21:32 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=352#comment-464</guid>

					<description><![CDATA[Thanks for sharing, 
I somehow followed your howto to implement my testing jenkins to not to compromise our corporate.
adding my 50cents : add --rm flag to the run command to not to get this error after stoping and attempting to start again : 
docker: Error response from daemon: Conflict. The container name &quot;/myjenkins&quot; is already in use by container 3d4b6c645b5029087893ea4b7846573e727432dc4577851960efc39d3cca493c. You have to remove (or rename) that container to be able to reuse that name..
so final command will be : 
# docker run -d -v /var/jenkins_home:/var/jenkins_home:z -p 8080:8080 -p 50000:50000 --rm --name myjenkins jenkins/jenkins:lts

All the best]]></description>
			<content:encoded><![CDATA[<p>Thanks for sharing,<br />
I somehow followed your howto to implement my testing jenkins to not to compromise our corporate.<br />
adding my 50cents : add &#8211;rm flag to the run command to not to get this error after stoping and attempting to start again :<br />
docker: Error response from daemon: Conflict. The container name &#8220;/myjenkins&#8221; is already in use by container 3d4b6c645b5029087893ea4b7846573e727432dc4577851960efc39d3cca493c. You have to remove (or rename) that container to be able to reuse that name..<br />
so final command will be :<br />
# docker run -d -v /var/jenkins_home:/var/jenkins_home:z -p 8080:8080 -p 50000:50000 &#8211;rm &#8211;name myjenkins jenkins/jenkins:lts</p>
<p>All the best</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Emil		</title>
		<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-406</link>

		<dc:creator><![CDATA[Emil]]></dc:creator>
		<pubDate>Mon, 10 Sep 2018 18:46:26 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=352#comment-406</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-405&quot;&gt;dragon788&lt;/a&gt;.

Hi, Dragon!

Thanks for your feedback! Yes, you&#039;re right, it&#039;s a very good idea to add docker volume to this article. And yes, it&#039;s exactly that command. :) I will try to update my article this week. Thank you very much! :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-405">dragon788</a>.</p>
<p>Hi, Dragon!</p>
<p>Thanks for your feedback! Yes, you&#8217;re right, it&#8217;s a very good idea to add docker volume to this article. And yes, it&#8217;s exactly that command. 🙂 I will try to update my article this week. Thank you very much! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dragon788		</title>
		<link>https://emilwypych.com/2017/10/29/how-to-run-jenkins-with-docker/#comment-405</link>

		<dc:creator><![CDATA[dragon788]]></dc:creator>
		<pubDate>Mon, 10 Sep 2018 16:50:11 +0000</pubDate>
		<guid isPermaLink="false">https://emilwypych.com/?p=352#comment-405</guid>

					<description><![CDATA[It might be worthwhile to update this to show using a Docker volume `docker volume create my_jenkins_home` instead of mapping in from the host and then `docker run -d my_jenkins_home:/var/jenkins_home ...etc`. This should avoid the host/guest permissions issues while still allowing for persistence.

You also didn&#039;t show the command you used to get into the container to get the initialAdminPassword. I believe it is something like `docker exec containerID cat /var/jenkins_home/secrets/initialAdminPassword`.]]></description>
			<content:encoded><![CDATA[<p>It might be worthwhile to update this to show using a Docker volume `docker volume create my_jenkins_home` instead of mapping in from the host and then `docker run -d my_jenkins_home:/var/jenkins_home &#8230;etc`. This should avoid the host/guest permissions issues while still allowing for persistence.</p>
<p>You also didn&#8217;t show the command you used to get into the container to get the initialAdminPassword. I believe it is something like `docker exec containerID cat /var/jenkins_home/secrets/initialAdminPassword`.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 29/60 objects using Disk
Page Caching using Disk: Enhanced 
Minified using Disk

Served from: emilwypych.com @ 2025-11-23 13:28:18 by W3 Total Cache
-->