<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[docker - Stapps.io]]></title><description><![CDATA[docker - Stapps.io]]></description><link>https://blog.stapps.io/</link><generator>Ghost 0.11</generator><lastBuildDate>Sat, 03 Jan 2026 06:38:34 GMT</lastBuildDate><atom:link href="https://blog.stapps.io/tag/docker/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Docker CMD vs ENTRYPOINT]]></title><description><![CDATA[<p>Inside the Dockerfile:</p>

<h2 id="cmd">CMD</h2>

<p>This is the default command to be run by the entrypoint</p>

<h2 id="entrypoint">ENTRYPOINT</h2>

<p>This is the program to run the given command.</p>

<hr>

<p>Docker uses a default entrypoint of <code>/bin/sh -c</code> without a default command. <br>
When you call <code>docker run [options] ubuntu bash</code>, bash is the command</p>]]></description><link>https://blog.stapps.io/docker-cmd-vs-entrypoint/</link><guid isPermaLink="false">c2187607-7c07-475b-bb5c-52ba55c0cc5e</guid><category><![CDATA[tips]]></category><category><![CDATA[docker]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Mon, 26 Jan 2015 23:34:45 GMT</pubDate><content:encoded><![CDATA[<p>Inside the Dockerfile:</p>

<h2 id="cmd">CMD</h2>

<p>This is the default command to be run by the entrypoint</p>

<h2 id="entrypoint">ENTRYPOINT</h2>

<p>This is the program to run the given command.</p>

<hr>

<p>Docker uses a default entrypoint of <code>/bin/sh -c</code> without a default command. <br>
When you call <code>docker run [options] ubuntu bash</code>, bash is the command you're passing in, so your actually running: <code>/bin/sh -c bash</code>. <br>
You could then set a command in the dockerfile with CMD and this will be used by default unless you call a specific command instead when calling docker run.</p>

<p>You can also specify an ENTRYPOINT in your dockerfile which can be usefull if you want to use your container as more of an execuatable and don't need to run any other executable commands inside.</p>

<h3 id="whichtouse">Which to use?</h3>

<p>My advice is to use CMD in most places where you're running a command, but you may want to run a different command instead at some other stage, as if you used entrypoint you wouldn't be able to do this so easily. </p>

<p>But use entrypoint when you want to make the container act more like an executable, as a way of prefixing commands you pass to it with another command. </p>]]></content:encoded></item><item><title><![CDATA[Docker pure-ftp container]]></title><description><![CDATA[<p>Shameless plug, but there's now a pure-ftp based docker container available up on Dockers index: <a href="https://registry.hub.docker.com/u/stilliard/pure-ftpd/">https://registry.hub.docker.com/u/stilliard/pure-ftpd/</a></p>

<p>Usage instructions are found on the site and here: <br>
<a href="https://github.com/stilliard/docker-pure-ftpd">https://github.com/stilliard/docker-pure-ftpd</a></p>

<p>Please report any bugs etc to the issues on the github repo.</p>]]></description><link>https://blog.stapps.io/docker-pure-ftp-container/</link><guid isPermaLink="false">4ae75196-5a19-40c6-aa51-5b8f37f0c9a8</guid><category><![CDATA[docker]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Wed, 02 Jul 2014 19:13:51 GMT</pubDate><content:encoded><![CDATA[<p>Shameless plug, but there's now a pure-ftp based docker container available up on Dockers index: <a href="https://registry.hub.docker.com/u/stilliard/pure-ftpd/">https://registry.hub.docker.com/u/stilliard/pure-ftpd/</a></p>

<p>Usage instructions are found on the site and here: <br>
<a href="https://github.com/stilliard/docker-pure-ftpd">https://github.com/stilliard/docker-pure-ftpd</a></p>

<p>Please report any bugs etc to the issues on the github repo.</p>]]></content:encoded></item></channel></rss>