<?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 Roger&#39;s Blog</title>
		<link>https://blog.differentpla.net/tags/docker/</link>
		<description>Recent content in docker on Roger&#39;s Blog</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Mon, 12 May 2025 16:35:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.differentpla.net/tags/docker/feed.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Docker (and podman), macOS, localhost</title>
				<link>https://blog.differentpla.net/blog/2025/05/12/docker-macos-localhost/</link>
				<pubDate>Mon, 12 May 2025 16:35:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/05/12/docker-macos-localhost/</guid>
				<description>&lt;p&gt;On macOS, both Docker and Podman run a Linux VM. This has some weird effects when running (or writing) your own&#xA;container registry.&lt;/p&gt;</description>
			</item>
			<item>
				<title>FROM --platform=$TARGETPLATFORM in Podman and Docker</title>
				<link>https://blog.differentpla.net/blog/2025/05/01/multiarch-containers-podman-docker-3/</link>
				<pubDate>Thu, 01 May 2025 07:34:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/05/01/multiarch-containers-podman-docker-3/</guid>
				<description>&lt;p&gt;While building my &lt;a href=&#34;https://github.com/rlipscombe/erlang-cluster&#34;&gt;erlang-cluster&lt;/a&gt; demonstration project for&#xA;multi-architecture, using podman, I noticed some weirdness about using &lt;code&gt;FROM --platform=$TARGETPLATFORM&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Building multi-architecture containers in Podman and Docker</title>
				<link>https://blog.differentpla.net/blog/2025/04/30/multiarch-containers-podman-docker-2/</link>
				<pubDate>Wed, 30 Apr 2025 17:15:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/04/30/multiarch-containers-podman-docker-2/</guid>
				<description>&lt;p&gt;When I was investigating how to build multi-architecture containers in Podman, I noticed some &amp;hellip; oddities. So I wrote&#xA;them down. I&amp;rsquo;ll also compare podman&amp;rsquo;s behaviour to docker&amp;rsquo;s behaviour.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Running multi-architecture containers in Podman and Docker</title>
				<link>https://blog.differentpla.net/blog/2025/04/30/multiarch-containers-podman-docker-1/</link>
				<pubDate>Wed, 30 Apr 2025 14:58:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/04/30/multiarch-containers-podman-docker-1/</guid>
				<description>&lt;p&gt;I noticed some differences between podman on WSL2 and podman on macOS recently. I spent some time investigating.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Sharing networks between multiple docker compose projects</title>
				<link>https://blog.differentpla.net/blog/2025/03/30/docker-compose-shared-networks/</link>
				<pubDate>Sun, 30 Mar 2025 11:20:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/03/30/docker-compose-shared-networks/</guid>
				<description>&lt;p&gt;I run a number of docker containers on my Synology NAS, and I want to is put a reverse proxy in front of them. Since&#xA;they&amp;rsquo;re defined in separate docker compose projects, I need to attach the reverse proxy to the network defined by each&#xA;project.&lt;/p&gt;</description>
			</item>
			<item>
				<title>docker build without a Dockerfile</title>
				<link>https://blog.differentpla.net/blog/2025/03/27/docker-build-without-dockerfile/</link>
				<pubDate>Thu, 27 Mar 2025 17:21:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/03/27/docker-build-without-dockerfile/</guid>
				<description>&lt;p&gt;I recently wanted to create an Ubuntu container image with some extra stuff installed, but I couldn&amp;rsquo;t be bothered to&#xA;create a &lt;code&gt;Dockerfile&lt;/code&gt;. It turns out that docker has a &lt;code&gt;docker container commit&lt;/code&gt; command, so I used that. Here&amp;rsquo;s how.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using docker with macvlan on Synology NAS</title>
				<link>https://blog.differentpla.net/blog/2025/03/08/docker-macvlan-synology/</link>
				<pubDate>Sat, 08 Mar 2025 12:14:47 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/03/08/docker-macvlan-synology/</guid>
				<description>&lt;p&gt;In the previous post, I investigated using Docker with the macvlan network driver, to allow containers to have unique&#xA;external IP addresses. This is the follow-up post where I apply the changes to my Synology NAS.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using docker with macvlan</title>
				<link>https://blog.differentpla.net/blog/2025/03/08/docker-macvlan/</link>
				<pubDate>Sat, 08 Mar 2025 12:04:47 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/03/08/docker-macvlan/</guid>
				<description>&lt;p&gt;If you use the &lt;code&gt;bridge&lt;/code&gt; or &lt;code&gt;host&lt;/code&gt; network drivers in Docker, containers must use different port numbers to be accessible&#xA;on the host network. Here&amp;rsquo;s how to use the &lt;code&gt;macvlan&lt;/code&gt; driver to assign a unique IP address to each container, allowing&#xA;containers (and the host) to use the same port numbers.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using the correct identity when SSH forwarding in Docker</title>
				<link>https://blog.differentpla.net/blog/2024/01/16/docker-ssh-multiple-identities/</link>
				<pubDate>Tue, 16 Jan 2024 14:16:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2024/01/16/docker-ssh-multiple-identities/</guid>
				<description>&lt;p&gt;Back in October, I wrote a post explaining &lt;a href=&#34;https://blog.differentpla.net/blog/2023/10/02/docker-ssh/&#34;&gt;how to do SSH forwarding&lt;/a&gt; with&#xA;&lt;code&gt;docker build&lt;/code&gt;. In November, I wrote about &lt;a href=&#34;https://blog.differentpla.net/blog/2023/11/17/multiple-git-identities/&#34;&gt;how to use multiple SSH identities with git&lt;/a&gt;. Unfortunately, these don&amp;rsquo;t always mix: using SSH in the docker build uses&#xA;the &lt;em&gt;first&lt;/em&gt; SSH identity held by &lt;code&gt;ssh-agent&lt;/code&gt;, which might not be the one you wanted. Here&amp;rsquo;s how I got around this&#xA;problem.&lt;/p&gt;</description>
			</item>
			<item>
				<title>SSH Forwarding in Docker</title>
				<link>https://blog.differentpla.net/blog/2023/10/02/docker-ssh/</link>
				<pubDate>Mon, 02 Oct 2023 09:38:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/10/02/docker-ssh/</guid>
				<description>&lt;p&gt;If you&amp;rsquo;re building your application inside a Docker container, and you need to pull dependencies from a git server (e.g.&#xA;Github or Gitlab) using SSH, you need to forward your SSH session to the container.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Speeding up the container build</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-speeding-container-build/</link>
				<pubDate>Wed, 21 Dec 2022 19:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-speeding-container-build/</guid>
				<description>&lt;p&gt;I noticed that whenever I made any change to the application, it caused the &lt;del&gt;docker&lt;/del&gt;podman build to re-fetch and&#xA;recompile all of the dependencies. On the tiny laptop I was using at the time, this was taking several extra minutes for&#xA;every build.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Docker Registry Redux</title>
				<link>https://blog.differentpla.net/blog/2021/12/21/docker-registry-redux/</link>
				<pubDate>Tue, 21 Dec 2021 11:57:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/12/21/docker-registry-redux/</guid>
				<description>&lt;p&gt;Wherein I finally bring together all we&amp;rsquo;ve learned so far and stand this thing up properly.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Do docker registry names matter?</title>
				<link>https://blog.differentpla.net/blog/2021/12/17/do-docker-registry-names-matter/</link>
				<pubDate>Fri, 17 Dec 2021 21:29:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/12/17/do-docker-registry-names-matter/</guid>
				<description>&lt;p&gt;When you want to push an image to a docker registry, you need to tag it with the registry name. Does the name matter?&lt;/p&gt;</description>
			</item>
			<item>
				<title>k3s on Raspberry Pi: Using an Insecure Docker Registry</title>
				<link>https://blog.differentpla.net/blog/2021/12/16/k3s-docker-registry-insecure/</link>
				<pubDate>Thu, 16 Dec 2021 16:16:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/12/16/k3s-docker-registry-insecure/</guid>
				<description>&lt;p&gt;Let&amp;rsquo;s see if we can push an image to our new Docker Registry.&lt;/p&gt;</description>
			</item>
			<item>
				<title>k3s on Raspberry Pi: Private Docker Registry</title>
				<link>https://blog.differentpla.net/blog/2021/12/10/k3s-docker-registry/</link>
				<pubDate>Fri, 10 Dec 2021 09:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/12/10/k3s-docker-registry/</guid>
				<description>&lt;div class=&#34;alert alert-light d-flex&#34;&gt;&#xA;  &lt;i class=&#34;bi bi-info-circle&#34;&gt;&lt;/i&gt;&#xA;  &lt;div class=&#34;alert-content&#34;&gt;&#xA;    &lt;strong&gt;Updated:&lt;/strong&gt; See &lt;a href=&#34;https://blog.differentpla.net/blog/2021/12/21/docker-registry-redux/&#34;&gt;Docker Registry Redux&lt;/a&gt;.&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;In order to deploy our own applications, we&amp;rsquo;re going to need a private docker repository.&#xA;When I &lt;a href=&#34;https://blog.differentpla.net/blog/2020/02/06/k3s-raspi-private-docker/&#34;&gt;first did this&lt;/a&gt;, I used a standalone container.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Connecting to an Erlang node in a Docker container</title>
				<link>https://blog.differentpla.net/blog/2020/06/19/epmd-docker/</link>
				<pubDate>Fri, 19 Jun 2020 15:41:48 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/06/19/epmd-docker/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve got a bunch of Erlang nodes running in Docker containers, and I&amp;rsquo;d&#xA;like to connect a remote shell, running on the host, to one of them.&lt;/p&gt;</description>
			</item>
			<item>
				<title>k3s on Raspberry Pi: Phoenix Server</title>
				<link>https://blog.differentpla.net/blog/2020/02/07/k3s-raspi-phoenix-server/</link>
				<pubDate>Fri, 07 Feb 2020 11:17:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/02/07/k3s-raspi-phoenix-server/</guid>
				<description>&lt;p&gt;Note: This is basically the same as &lt;a href=&#34;https://blog.differentpla.net/blog/2020/02/06/k3s-raspi-node-server/&#34;&gt;the node.js server&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;creating-the-phoenix-app&#34;&gt;Creating the Phoenix app&lt;a href=&#34;#creating-the-phoenix-app&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;It&amp;rsquo;s entirely possible to create the app inside the docker container, or on a completely different machine, but I&amp;rsquo;m going to do it locally, which means &lt;a href=&#34;https://blog.differentpla.net/blog/2020/02/07/rpi-elixir/&#34;&gt;installing Erlang, Elixir and Phoenix first&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>k3s on Raspberry Pi: node.js Server</title>
				<link>https://blog.differentpla.net/blog/2020/02/06/k3s-raspi-node-server/</link>
				<pubDate>Thu, 06 Feb 2020 19:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/02/06/k3s-raspi-node-server/</guid>
				<description>&lt;p&gt;Now that I&amp;rsquo;ve successfully run &lt;code&gt;nginx&lt;/code&gt; on my cluster, I&amp;rsquo;m going to do the same with a simple &lt;code&gt;node.js&lt;/code&gt; server.&lt;/p&gt;</description>
			</item>
			<item>
				<title>k3s on Raspberry Pi: Private Docker</title>
				<link>https://blog.differentpla.net/blog/2020/02/06/k3s-raspi-private-docker/</link>
				<pubDate>Thu, 06 Feb 2020 17:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/02/06/k3s-raspi-private-docker/</guid>
				<description>&lt;div class=&#34;alert alert-info d-flex&#34;&gt;&#xA;  &lt;i class=&#34;bi bi-info-circle&#34;&gt;&lt;/i&gt;&#xA;  &lt;div class=&#34;alert-content&#34;&gt;&#xA;    &lt;strong&gt;Updated:&lt;/strong&gt; See &lt;a href=&#34;https://blog.differentpla.net/blog/2021/12/21/docker-registry-redux/&#34;&gt;Docker Registry Redux&lt;/a&gt;.&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;In order to run our own apps on the cluster, we&amp;rsquo;re going to need a private docker repository.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
