<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docker on Joseph Hale</title>
    <link>https://thehale.dev/topics/docker/</link>
    <description>Recent content in Docker on Joseph Hale</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    
    
    
    
      <lastBuildDate>Fri, 20 Jun 2025 12:00:00 -0700</lastBuildDate>
    
    <atom:link href="https://thehale.dev/topics/docker/index.xml" rel="self" type="application/rss+xml" />
      <item>
        <title>Deploying Jenkins with infrastructure as code (IaC)</title>
        <link>https://thehale.dev/guides/deploy-jenkins-to-production/</link>
        <pubDate>Fri, 20 Jun 2025 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/guides/deploy-jenkins-to-production/</guid>
        <description>&lt;h2 id=&#34;introduction&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#introduction&#34; aria-hidden=&#34;true&#34; tabindex=&#34;-1&#34;&gt;&lt;/a&gt;&#xA;  Introduction&#xA;  &lt;a class=&#34;hash&#34; href=&#34;#introduction&#34; aria-label=&#34;Link to this heading&#34; title=&#34;Link to this heading&#34; data-copy-title=&#34;Copy a link to this heading&#34;&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;Many guides start by showing how to build an application locally, but entirely omit guidance for deploying that application to a production environment &amp;ndash; often because each organization has unique needs/preferences for a production deployment.&lt;/p&gt;&#xA;&lt;p&gt;In contrast, this initial guide will create a &lt;a href=&#34;https://www.mattblodgett.com/2020/09/start-with-walking-skeleton.html?utm_source=thehale.dev&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=deploy-jenkins-to-production&#34; rel=&#34;noopener&#34; target=&#34;_blank&#34;&gt;&lt;span&gt;&amp;ldquo;walking skeleton&amp;rdquo;&lt;/span&gt;&lt;span aria-hidden=&#34;true&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 512 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/a&gt; of a production-like Jenkins deployment. In more words, this guide will describe not only how to run Jenkins on your local machine, but also how to configure all the tooling required to provision a cloud server, deploy Jenkins on that server, and make the instance available to the world wide web.&lt;/p&gt;</description>
      </item>
      <item>
        <title>Removing stopped Docker containers</title>
        <link>https://thehale.dev/guides/remove-stopped-docker-containers/</link>
        <pubDate>Tue, 18 Mar 2025 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/guides/remove-stopped-docker-containers/</guid>
        <description>&lt;h2 id=&#34;tldr&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#tldr&#34; aria-hidden=&#34;true&#34; tabindex=&#34;-1&#34;&gt;&lt;/a&gt;&#xA;  TL;DR&#xA;  &lt;a class=&#34;hash&#34; href=&#34;#tldr&#34; aria-label=&#34;Link to this heading&#34; title=&#34;Link to this heading&#34; data-copy-title=&#34;Copy a link to this heading&#34;&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;code-block&#34; style=&#34;--code-block-lang: &#39;Bash&#39;&#34;&gt;&#xA;    &lt;div class=&#34;code-block-actions&#34;&gt;&#xA;    &lt;span class=&#34;code-block-lang&#34;&gt;Bash&lt;/span&gt;&#xA;  &lt;button type=&#34;button&#34; class=&#34;code-block-copy&#34; aria-label=&#34;Copy code to clipboard&#34; title=&#34;Copy code&#34; hidden&gt;&#xA;    &lt;span class=&#34;active&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 448 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&#xA;    &lt;span&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 448 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&#xA;  &lt;/button&gt;&#xA;&lt;/div&gt;&#xA;&#xA;  &#xA;  &#xA;  &#xA;  &#xA;  &#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; role=&#34;group&#34; aria-label=&#34;Bash code&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;docker rm &lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;docker ps -a &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; grep Exited &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; cut -d &lt;span class=&#34;s2&#34;&gt;&amp;#34; &amp;#34;&lt;/span&gt; -f 1&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;how-it-works&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#how-it-works&#34; aria-hidden=&#34;true&#34; tabindex=&#34;-1&#34;&gt;&lt;/a&gt;&#xA;  How it works&#xA;  &lt;a class=&#34;hash&#34; href=&#34;#how-it-works&#34; aria-label=&#34;Link to this heading&#34; title=&#34;Link to this heading&#34; data-copy-title=&#34;Copy a link to this heading&#34;&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;Recently, I forgot to include &lt;code&gt;--rm&lt;/code&gt; when running a bunch of throwaway containers, so my system was cluttered with loads of stopped containers with auto-generated names.&lt;/p&gt;</description>
      </item>
  </channel>
</rss>
