<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>postIt &#187; Docker</title>
	<atom:link href="https://lakm.us/postit/tag/docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/postit</link>
	<description>Post-It sticky notes with PasteBin sense</description>
	<lastBuildDate>Thu, 02 Jan 2025 01:33:57 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.18</generator>
	<item>
		<title>At the root folder where there is Docker &#8230;</title>
		<link>https://lakm.us/postit/2021/11/at-the-root-folder-where-there-is-docker/</link>
		<comments>https://lakm.us/postit/2021/11/at-the-root-folder-where-there-is-docker/#comments</comments>
		<pubDate>Tue, 02 Nov 2021 05:30:57 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Docker]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2021/11/at-the-root-folder-where-there-is-docker/</guid>
		<description><![CDATA[At the root folder where there is Dockerfile docker build -t linkedin-learning-downloader . cd to linkedin-learning-downloader docker run -ti -v $&#40;pwd&#41;:/usr/src/app --rm linkedin-learning-downloader python linkedin_learning.py]]></description>
				<content:encoded><![CDATA[<p>At the root folder where there is <code>Dockerfile</code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">docker build <span style="color: #660033;">-t</span> linkedin-learning-downloader .</pre></td></tr></table></div>

<p>cd to linkedin-learning-downloader</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">docker run <span style="color: #660033;">-ti</span> <span style="color: #660033;">-v</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">pwd</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>app <span style="color: #660033;">--rm</span> linkedin-learning-downloader python linkedin_learning.py</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2021/11/at-the-root-folder-where-there-is-docker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker clean up based on ancestor tag
 &#8230;</title>
		<link>https://lakm.us/postit/2020/01/docker-clean-up-based-on-ancestor-tag/</link>
		<comments>https://lakm.us/postit/2020/01/docker-clean-up-based-on-ancestor-tag/#comments</comments>
		<pubDate>Fri, 03 Jan 2020 07:40:16 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Docker]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2020/01/docker-clean-up-based-on-ancestor-tag/</guid>
		<description><![CDATA[Docker clean up based on ancestor tag docker ps -a -q --filter ancestor=azurebot/qna then docker rm the containers]]></description>
				<content:encoded><![CDATA[<p>Docker clean up based on ancestor tag</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">docker <span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-a</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">--filter</span> <span style="color: #007800;">ancestor</span>=azurebot<span style="color: #000000; font-weight: bold;">/</span>qna</pre></td></tr></table></div>

<p>then <code>docker</code> rm the containers</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2020/01/docker-clean-up-based-on-ancestor-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When put at the root of my Windows user  &#8230;</title>
		<link>https://lakm.us/postit/2020/01/when-put-at-the-root-of-my-windows-user/</link>
		<comments>https://lakm.us/postit/2020/01/when-put-at-the-root-of-my-windows-user/#comments</comments>
		<pubDate>Thu, 02 Jan 2020 09:38:16 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Docker]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2020/01/when-put-at-the-root-of-my-windows-user/</guid>
		<description><![CDATA[When put at the root of my Windows user folder C:\Users\[my username]\Dockerfile it will fail to find context of related files required in the build COPY failed: stat /mnt/sda1/var/lib/docker/tmp/docker-builder746762051/nodejs/package.json: no such file or directory Hence, in separate sub-directory: &#60;docker Windows User root&#62; &#124; nodejs &#40;dir&#41; &#124;___ Dockerfile .dockerignore resources &#40;dir&#41; &#124;____packages.json serverhello.js COPY success during [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>When put at the root of my Windows user folder <code>C:\Users\[my username]\Dockerfile</code><br />
it will fail to find <strong>context</strong> of related files required in the build</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">COPY failed: <span style="color: #c20cb9; font-weight: bold;">stat</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sda1<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>docker<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>docker-builder746762051<span style="color: #000000; font-weight: bold;">/</span>nodejs<span style="color: #000000; font-weight: bold;">/</span>package.json: no such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory</pre></td></tr></table></div>

<p>Hence, in separate sub-directory:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>docker Windows User root<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">|</span>
   nodejs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dir</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
         <span style="color: #000000; font-weight: bold;">|</span>___ Dockerfile
              .dockerignore
              resources <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dir</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
                 <span style="color: #000000; font-weight: bold;">|</span>____packages.json
                      serverhello.js</pre></td></tr></table></div>

<p>COPY success during build:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> nodejs
docker build <span style="color: #660033;">-t</span> bandono<span style="color: #000000; font-weight: bold;">/</span>simplenodeweb .</pre></td></tr></table></div>

<p>Instead of <code>-d</code> that exited with code 126 the whole time, run the <code>serverhello.js</code> using:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ docker run <span style="color: #660033;">-p</span> <span style="color: #000000;">8286</span>:<span style="color: #000000;">8080</span> bandono<span style="color: #000000; font-weight: bold;">/</span>simplenodeweb node serverhello.js
Running on http:<span style="color: #000000; font-weight: bold;">//</span>0.0.0.0:<span style="color: #000000;">8080</span></pre></td></tr></table></div>

<p>References (which not working at first running with <code>-d</code>):</p>
<p><a href="https://nodejs.org/de/docs/guides/nodejs-docker-webapp/" target="_blank">[1] nodejs org</a><br />
<a href="https://www.digitalocean.com/community/tutorials/how-to-build-a-node-js-application-with-docker" target="_blank">[2] DigitalOcean </a></p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2020/01/when-put-at-the-root-of-my-windows-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FROM python:2.7

RUN pip install &#8211;n &#8230;</title>
		<link>https://lakm.us/postit/2019/12/from-python2-7run-pip-install-n/</link>
		<comments>https://lakm.us/postit/2019/12/from-python2-7run-pip-install-n/#comments</comments>
		<pubDate>Sun, 22 Dec 2019 13:08:02 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Docker]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2019/12/from-python2-7run-pip-install-n/</guid>
		<description><![CDATA[FROM python:2.7 &#160; RUN pip install --no-cache-dir pytest]]></description>
				<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">FROM python:<span style="color: #000000;">2.7</span>
&nbsp;
RUN pip <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">--no-cache-dir</span> pytest</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2019/12/from-python2-7run-pip-install-n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
