<?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 ads' corner</title><link>https://andreas.scherbaum.la/tags/docker/</link><description>Recent content in Docker on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 15 Jun 2026 00:00:00 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>How installing nftables broke ssh-copy-id</title><link>https://andreas.scherbaum.la/post/2026-06-15_how-installing-nftables-broke-ssh-copy-id/</link><pubDate>Mon, 15 Jun 2026 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2026-06-15_how-installing-nftables-broke-ssh-copy-id/</guid><description>&lt;p&gt;While testing a new feature for &lt;a href="https://warehouse-pg.io/"&gt;WarehousePG&lt;/a&gt; in our &lt;a href="https://github.com/EnterpriseDB/warehouse-pg-docker"&gt;Docker containers&lt;/a&gt;, I ran into an unexpected problem: I wanted to block certain network traffic between the &lt;em&gt;Docker&lt;/em&gt; hosts, and therefore installed &lt;code&gt;nftables&lt;/code&gt;. Suddenly very early in the startup process the &lt;code&gt;ssh-copy-id&lt;/code&gt; ssh key exchange broke.&lt;/p&gt;&#10;&lt;p&gt;The error message:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 1&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 2&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 3&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 4&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 5&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 6&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 7&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 8&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt; 9&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;10&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;11&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;12&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-plaintext" data-lang="plaintext"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | Adding ssh keys for user gpadmin to host standby&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | Attempt 1/5: Adding keys for user gpadmin to host standby ...&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | Something went wrong adding ssh keys for user gpadmin to host standby.&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | Here is the log output:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator |&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: &amp;#34;/home/gpadmin/.ssh/id_rsa.pub&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | kex_exchange_identification: read: Connection reset by peer&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | Connection reset by 169.254.2.66 port 22&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator |&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;coordinator | Attempt 1 failed with exit code 1.&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;The key question: why is simply installing a new package into the container breaking an unrelated tool?&lt;/p&gt;</description></item><item><title>PostgreSQL Meetup in Frankfurt December 2025</title><link>https://andreas.scherbaum.la/post/2026-01-07_postgresql-meetup-in-frankfurt-december-2025/</link><pubDate>Wed, 07 Jan 2026 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2026-01-07_postgresql-meetup-in-frankfurt-december-2025/</guid><description>&lt;p&gt;On December 10th, 2025, the &lt;em&gt;PostgreSQL&lt;/em&gt; &lt;a href="https://www.meetup.com/postgres-user-group-frankfurt-am-main/events/312056115/"&gt;December Meetup&lt;/a&gt; in &lt;em&gt;Frankfurt (Main)&lt;/em&gt; took place. We had two speakers, and a nice dinner.&lt;/p&gt;&#10;&lt;p&gt;This Meetup was organized around the &lt;a href="https://www.ittage.informatik-aktuell.de/"&gt;IT-Tage&lt;/a&gt;, and the Meetup organizers had booked a reeting toom in the &lt;a href="https://www.openstreetmap.org/node/10203214040"&gt;Scandic Frankfurt Museumsufer&lt;/a&gt;. About 15 minutes walking from the conference, and unfortunately it was raining that evening.&lt;/p&gt;&#10;&lt;p&gt;&#10;&lt;figure&gt;&#10; &lt;img src="frankfurt-meetup-december-2025.jpg" alt="Meeting room" title="Meeting room" width="800" height="600" loading="lazy" /&gt;&#10;&#10; &lt;center&gt;&lt;figcaption&gt;Meeting room&lt;/figcaption&gt;&lt;/center&gt;&#10;&#10;&lt;/figure&gt;&#10;&#10;&#10;&lt;/p&gt;&#10;&lt;h2 id="dirk-aumueller-running-postgresql-with-podman-quadlet--systemd"&gt;Dirk Aumueller: Running PostgreSQL with Podman, Quadlet &amp;amp; Systemd&lt;/h2&gt;&#10;&lt;p&gt;&lt;em&gt;Dirk&lt;/em&gt; spoke about how to run &lt;em&gt;PostgreSQL&lt;/em&gt; inside a &lt;em&gt;Podman&lt;/em&gt; Quadlet which is managed by &lt;em&gt;systemd&lt;/em&gt;. That is a nice and elegant way to run a root-less container, or build an entire application stack with a number of containers.&lt;/p&gt;</description></item><item><title>Docker Secrets and hiding sensitive information in Docker build output</title><link>https://andreas.scherbaum.la/post/2025-07-30_docker-secrets-and-hiding-sensitive-information-in-docker-build-output/</link><pubDate>Wed, 30 Jul 2025 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2025-07-30_docker-secrets-and-hiding-sensitive-information-in-docker-build-output/</guid><description>&lt;p&gt;While building a container, I need to pass a token into the build process. The container build step needs to download a package using said secret token - and that token is part of the URL. The token will show up on the screen, and potentially in any logfile. Not good.&lt;/p&gt;&#10;&lt;p&gt;Note: This applies to &lt;code&gt;docker compose&lt;/code&gt; (and &lt;code&gt;docker buildx&lt;/code&gt;).&lt;/p&gt;&#10;&lt;p&gt;The step in the &lt;code&gt;Dockerfile&lt;/code&gt; looks like this:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;RUN curl -1Lfs &lt;span style="color:#0a3069"&gt;&amp;#34;https://website.example/verysecrettoken/setup.rpm&amp;#34;&lt;/span&gt; -o /root/setup.sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;And shows up in the build output on the screen, and in the log:&lt;/p&gt;</description></item><item><title>Docker und die Deutsche Bahn - Login nicht möglich</title><link>https://andreas.scherbaum.la/post/2025-06-16_docker-und-die-deutsche-bahn-login-nicht-moeglich/</link><pubDate>Mon, 16 Jun 2025 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2025-06-16_docker-und-die-deutsche-bahn-login-nicht-moeglich/</guid><description>&lt;p&gt;Während ich heute morgen auf dem Hauptbahnhof in &lt;em&gt;Berlin&lt;/em&gt; saß und noch etwas Zeit hatte, wollte ich einige Nachrichten beantworten. Laptop aufgeklappt, das &lt;a href="https://de.wikipedia.org/wiki/Deutsche_Bahn"&gt;Deutsche Bahn&lt;/a&gt; Wi-Fi ausgewählt &amp;hellip; und nichts passiert. Nicht mal die Aufforderung sich in das WLAN einzuloggen. Laptop zugeklappt und einen Cappuccino geholt.&lt;/p&gt;&#10;&lt;p&gt;Als das Problem dann im ICE weiterhin auftrat habe ich etwas genauer geschaut. Nach einigem hin und her war klar dass sich &lt;a href="https://de.wikipedia.org/wiki/Docker_(Software)"&gt;Docker&lt;/a&gt; und das interne Netz der Bahn gegenseitig stören.&lt;/p&gt;</description></item><item><title>Show all docker build output</title><link>https://andreas.scherbaum.la/post/2025-05-07_show-all-docker-build-output/</link><pubDate>Wed, 07 May 2025 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2025-05-07_show-all-docker-build-output/</guid><description>&lt;p&gt;&lt;em&gt;Docker&lt;/em&gt; by default will hide the process output of a step once the step is completed. This makes for a nice and tidy output, not overloading the screen with too many details. Here&amp;rsquo;s such an example:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;2&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;3&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;4&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;5&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;6&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;7&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-docker" data-lang="docker"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#953800"&gt;DOCKER_BUILDKIT&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0550ae"&gt;1&lt;/span&gt; docker compose up --force-recreate --build&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&amp;gt; &lt;span style="color:#0550ae"&gt;[&lt;/span&gt;&lt;span style="color:#6639ba"&gt;test&lt;/span&gt; build-stage 2/20&lt;span style="color:#0550ae"&gt;]&lt;/span&gt; RUN &lt;span style="color:#6639ba"&gt;echo&lt;/span&gt; &lt;span style="color:#0a3069"&gt;&amp;#34;Checksum /etc/hosts&amp;#34;&lt;/span&gt; 0.5s&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&amp;gt; &lt;span style="color:#0550ae"&gt;[&lt;/span&gt;&lt;span style="color:#6639ba"&gt;test&lt;/span&gt; build-stage 3/20&lt;span style="color:#0550ae"&gt;]&lt;/span&gt; RUN sha256sum /etc/hosts 0.3s&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&amp;gt; &lt;span style="color:#0550ae"&gt;[&lt;/span&gt;&lt;span style="color:#6639ba"&gt;test&lt;/span&gt; build-stage 2/20&lt;span style="color:#0550ae"&gt;]&lt;/span&gt; RUN &lt;span style="color:#6639ba"&gt;echo&lt;/span&gt; &lt;span style="color:#0a3069"&gt;&amp;#34;Checksum /etc/hosts&amp;#34;&lt;/span&gt; 0.6s&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&amp;gt; &lt;span style="color:#0550ae"&gt;[&lt;/span&gt;&lt;span style="color:#6639ba"&gt;test&lt;/span&gt; build-stage 3/20&lt;span style="color:#0550ae"&gt;]&lt;/span&gt; RUN sha256sum /etc/hosts 0.3s&lt;span style="color:#f6f8fa;background-color:#82071e"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;As you can see, the actual &lt;code&gt;sha256sum&lt;/code&gt; checksum is not shown once the steps complete.&lt;/p&gt;</description></item><item><title>Clear Docker build cache</title><link>https://andreas.scherbaum.la/post/2024-08-30_clear-docker-build-cache/</link><pubDate>Fri, 30 Aug 2024 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-08-30_clear-docker-build-cache/</guid><description>&lt;p&gt;I have this one &lt;em&gt;Docker&lt;/em&gt; image, which I need every 2-3 months to run a task in an outdated piece of software, which is no longer supported on modern systems. That works fine, but after a while I figured that &lt;em&gt;Docker&lt;/em&gt; is keeping all the build layers, even though I remove the images and containers. Worst, sometimes I update the build for the &lt;em&gt;Docker&lt;/em&gt;file, and the entire image needs to be rebuild. Still &lt;em&gt;Docker&lt;/em&gt; caches all the previous build layers as well.&lt;/p&gt;&#10;&lt;p&gt;Removing the build layers is not obvious, there is no specific &lt;em&gt;Docker&lt;/em&gt; command.&lt;/p&gt;</description></item><item><title>Hamburg PostgreSQL Meetup in April 2024</title><link>https://andreas.scherbaum.la/post/2024-04-29_hamburg-postgresql-meetup-in-april-2024/</link><pubDate>Mon, 29 Apr 2024 00:08:58 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-04-29_hamburg-postgresql-meetup-in-april-2024/</guid><description>&lt;p&gt;On April 23rd - after a very long break - the &lt;a href="https://www.meetup.com/hamburg-pug/events/299115907/"&gt;third PostgreSQL Meetup&lt;/a&gt; took place in &lt;em&gt;Hamburg&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;Sascha had temporarily taken over the Meetup group after the previous admins were no longer available. Last year at &lt;em&gt;PGConf.DE 2023&lt;/em&gt; I asked if there is anyone interested who would like to revive the group. Tobias had agreed to do so, and Lenz also joined the effort at the &lt;em&gt;PGConf.EU 2023&lt;/em&gt;. After a few organizational details, the first (or rather third) meetup was scheduled.&lt;/p&gt;</description></item><item><title>Fix LXC network issues in Ubuntu 22.04</title><link>https://andreas.scherbaum.la/post/2023-01-18_fix-lxc-network-issues-in-ubuntu-22.04/</link><pubDate>Wed, 18 Jan 2023 19:17:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2023-01-18_fix-lxc-network-issues-in-ubuntu-22.04/</guid><description>&lt;p&gt;Ran into a curios problem while updating the &lt;a href="https://github.com/features/actions"&gt;GitHub Actions&lt;/a&gt; Workflow for a &lt;a href="https://github.com/andreasscherbaum/ansible-lxc-ssh"&gt;project&lt;/a&gt;:&lt;/p&gt;</description></item></channel></rss>