<?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 Automatically Build and Configure Custom Docker Images with Dockerfile &#8211; Part 3	</title>
	<atom:link href="https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 19 Nov 2020 14:39:46 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Diego Rebolledo		</title>
		<link>https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-1392137</link>

		<dc:creator><![CDATA[Diego Rebolledo]]></dc:creator>
		<pubDate>Thu, 19 Nov 2020 14:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18543#comment-1392137</guid>

					<description><![CDATA[Hi guys, I had an error while installed apache with the docker file, the problem was configuring the timezone, when I selected my TZ, the installation freezing, so I had to add these parameters in the docker file for predefining the TZ in the installation:
&lt;pre&gt;
ENV TZ=Europe/Berlin
&lt;/pre&gt;
RUN 
&lt;pre&gt;
# ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &#038;&#038; echo $TZ &#062; /etc/timezone
&lt;/pre&gt;
I add that in the docker file and it works!!]]></description>
			<content:encoded><![CDATA[<p>Hi guys, I had an error while installed apache with the docker file, the problem was configuring the timezone, when I selected my TZ, the installation freezing, so I had to add these parameters in the docker file for predefining the TZ in the installation:</p>
<pre>
ENV TZ=Europe/Berlin
</pre>
<p>RUN </p>
<pre>
# ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; echo $TZ &gt; /etc/timezone
</pre>
<p>I add that in the docker file and it works!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul		</title>
		<link>https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-1098984</link>

		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Mon, 04 Feb 2019 04:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18543#comment-1098984</guid>

					<description><![CDATA[Thank you for this hands-on Docker tutorial. Worked fine.

In the Dockerfile, had to replace one line with this to avoid a error finding apache2:
&lt;pre&gt;
# apt-get update &#038;&#038; apt-get -y install apache2
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Thank you for this hands-on Docker tutorial. Worked fine.</p>
<p>In the Dockerfile, had to replace one line with this to avoid a error finding apache2:</p>
<pre>
# apt-get update &amp;&amp; apt-get -y install apache2
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alan		</title>
		<link>https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-1064500</link>

		<dc:creator><![CDATA[Alan]]></dc:creator>
		<pubDate>Fri, 23 Nov 2018 03:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18543#comment-1064500</guid>

					<description><![CDATA[Help, years old instructions..

So, i have to hand write a &lt;strong&gt;dockerfile&lt;/strong&gt;, and know what the variables are. So lets just say i followed section 3, the Apache setup, less the mounting external file inside the container, went to follow the instructions to contain it and pump it to AWS/docker service so i need to:

&quot;&quot;&lt;code&gt;docker build -t test .&lt;/code&gt;&quot; and i get:

&lt;strong&gt;&quot;unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/docker/Dockerfile: no such file or directory&quot;&lt;/strong&gt;

You have a &quot;The following instructions are the most used, some of them being mandatory:&quot;

so: &quot;FROM&quot; is that the base OS? or the encapsulated OS?, and what is it referencing that from since its &quot;Mandatory&quot; i cant just do a &quot;ASDF&quot;? doing a little looking, that&#039;s the container&#039;s OS variant.. so &quot;FROM httpd:2.4&quot; ?
&lt;ul&gt;
&lt;li&gt;&quot;MAINTAINER&quot; is that me? or the AWS user? the OS user? what? not mandatory?&lt;/li&gt;
&lt;li&gt;&quot;RUN&quot; im guessing thats the commands for the container OS?&lt;/li&gt;
&lt;li&gt;&quot;CMD&quot; whats this then for? i thought i did that with RUN&lt;/li&gt;
&lt;li&gt;&quot;ENTRYPOINT&quot; &quot;same as CMD&quot; so i run command thrice?&lt;/li&gt;
&lt;li&gt;&quot;EXPOSE&quot; is this the same as -P argument? or different string? I don&#039;t know..&lt;/li&gt;
&lt;li&gt;&quot;ENV&quot; environment variables, any information on that? what are the things I can variate? all I know is &quot;HOME /root&quot;&lt;/li&gt;
&lt;li&gt;&quot;ADD&quot; so i guess this is null&#039;n&#039;void to me, since CP&#039;ing the files into the container, since I need it self contained..&lt;/li&gt;
&lt;/ul&gt;
Can I add &quot;&lt;strong&gt;CMD docker cp /media/home/me/Desktop/files.php Container:/var/www/html&lt;/strong&gt;&quot; ? 

Will that pull files from my desktop when &quot;docker build&quot; command runs? or do i have to get a container running then do that manually?

So I am some what surprised this isn&#039;t populated in a file when you get a docker container to run, you&#039;d think it&#039;ll be part of the docker creation process, base stats with the variables, all the other lovely files are created, why not the basic dockerfile? why does it have to be hand written? so many mistakes can be made like that..

and someone explain to me why docker containers have a underline OS? i thought this system used the base OS and plug dependencies though a &quot;firewall&quot; like feature.

Seems like its: BaseOS -&#062; Docker -&#062; Container OS -&#062; Application

looks a lot like a VM process: BaseOS -&#062; VME -&#062; VMOS -&#062; Application]]></description>
			<content:encoded><![CDATA[<p>Help, years old instructions..</p>
<p>So, i have to hand write a <strong>dockerfile</strong>, and know what the variables are. So lets just say i followed section 3, the Apache setup, less the mounting external file inside the container, went to follow the instructions to contain it and pump it to AWS/docker service so i need to:</p>
<p>&#8220;&#8221;<code>docker build -t test .</code>&#8221; and i get:</p>
<p><strong>&#8220;unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/docker/Dockerfile: no such file or directory&#8221;</strong></p>
<p>You have a &#8220;The following instructions are the most used, some of them being mandatory:&#8221;</p>
<p>so: &#8220;FROM&#8221; is that the base OS? or the encapsulated OS?, and what is it referencing that from since its &#8220;Mandatory&#8221; i cant just do a &#8220;ASDF&#8221;? doing a little looking, that&#8217;s the container&#8217;s OS variant.. so &#8220;FROM httpd:2.4&#8221; ?</p>
<ul>
<li>&#8220;MAINTAINER&#8221; is that me? or the AWS user? the OS user? what? not mandatory?</li>
<li>&#8220;RUN&#8221; im guessing thats the commands for the container OS?</li>
<li>&#8220;CMD&#8221; whats this then for? i thought i did that with RUN</li>
<li>&#8220;ENTRYPOINT&#8221; &#8220;same as CMD&#8221; so i run command thrice?</li>
<li>&#8220;EXPOSE&#8221; is this the same as -P argument? or different string? I don&#8217;t know..</li>
<li>&#8220;ENV&#8221; environment variables, any information on that? what are the things I can variate? all I know is &#8220;HOME /root&#8221;</li>
<li>&#8220;ADD&#8221; so i guess this is null&#8217;n&#8217;void to me, since CP&#8217;ing the files into the container, since I need it self contained..</li>
</ul>
<p>Can I add &#8220;<strong>CMD docker cp /media/home/me/Desktop/files.php Container:/var/www/html</strong>&#8221; ? </p>
<p>Will that pull files from my desktop when &#8220;docker build&#8221; command runs? or do i have to get a container running then do that manually?</p>
<p>So I am some what surprised this isn&#8217;t populated in a file when you get a docker container to run, you&#8217;d think it&#8217;ll be part of the docker creation process, base stats with the variables, all the other lovely files are created, why not the basic dockerfile? why does it have to be hand written? so many mistakes can be made like that..</p>
<p>and someone explain to me why docker containers have a underline OS? i thought this system used the base OS and plug dependencies though a &#8220;firewall&#8221; like feature.</p>
<p>Seems like its: BaseOS -&gt; Docker -&gt; Container OS -&gt; Application</p>
<p>looks a lot like a VM process: BaseOS -&gt; VME -&gt; VMOS -&gt; Application</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kiran Vara Prasad		</title>
		<link>https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-750491</link>

		<dc:creator><![CDATA[Kiran Vara Prasad]]></dc:creator>
		<pubDate>Sat, 13 Feb 2016 09:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18543#comment-750491</guid>

					<description><![CDATA[Thank you for the great article Matei Cezar]]></description>
			<content:encoded><![CDATA[<p>Thank you for the great article Matei Cezar</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Matei Cezar		</title>
		<link>https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-747948</link>

		<dc:creator><![CDATA[Matei Cezar]]></dc:creator>
		<pubDate>Thu, 04 Feb 2016 15:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18543#comment-747948</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-747821&quot;&gt;vignesh.s&lt;/a&gt;.

Replace the following variables:
FROM centos
RUN yum -y install httpd
CMD /usr/sbin/apachectl -D FOREGROUND]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/build-and-configure-docker-container-images-with-dockerfile/comment-page-1/#comment-747821">vignesh.s</a>.</p>
<p>Replace the following variables:<br />
FROM centos<br />
RUN yum -y install httpd<br />
CMD /usr/sbin/apachectl -D FOREGROUND</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
