<?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 Mulham Fetna</title>
    <link>https://mulhamfetna.com/tags/docker/</link>
    <description>Recent content in Docker on Mulham Fetna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>contact@mulhamfetna.com (Mulham Fetna)</managingEditor>
    <webMaster>contact@mulhamfetna.com (Mulham Fetna)</webMaster>
    <copyright>© 2026 Mulham Fetna</copyright>
    <lastBuildDate>Tue, 08 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://mulhamfetna.com/tags/docker/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Containerizing ROS 2 without losing the hardware</title>
      <link>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Web developers containerize to isolate processes. Roboticists containerize and then spend the rest&#xA;of the day punching holes back through the isolation — for the camera, the GPU, the display server&#xA;and the network.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;ROS 2 Jazzy is hard-locked to Ubuntu 24.04. That single fact is reason enough to containerize:&#xA;without it, adopting a ROS distribution means adopting an operating system version, on every machine&#xA;that will ever run the code.&lt;/p&gt;&#xA;&lt;p&gt;But a ROS container is a strange artifact. A web service container wants isolation — that is the&#xA;product. A robotics container needs a webcam, a GPU, a display server and multicast networking, all&#xA;of which live outside it. You end up building a box and then carefully cutting four holes in it.&lt;/p&gt;&#xA;&lt;p&gt;Here is every hole in this project&amp;rsquo;s compose file and what it is for.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;auto&#34;&#xA;    alt=&#34;A full docker compose up &amp;ndash;build: image layers exporting, colcon building hand_msgs inside both Python containers, then the ROS nodes attaching&#34;&#xA;    width=&#34;900&#34;&#xA;    height=&#34;947&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log_hu_7eb02bda97083a9.png&#34;&#xA;    srcset=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log_hu_7eb02bda97083a9.png 800w, https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log.png 1280w&#34;&#xA;    sizes=&#34;(min-width: 768px) 50vw, 65vw&#34;&#xA;    data-zoom-src=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log.png&#34;&gt;&lt;figcaption&gt;Cold start to live tracking. Note hand_msgs being compiled separately inside two different containers — that duplication is deliberate and load-bearing.&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart TB&#xA;    subgraph HOST[&#34;🖥️ Host — Ubuntu / Kubuntu&#34;]&#xA;        X11[&#34;X11 socket&lt;br&gt;/tmp/.X11-unix&#34;]&#xA;        CAM[&#34;/dev/video0&#34;]&#xA;        GPU[&#34;/dev/dri&#34;]&#xA;        NET[&#34;host network&lt;br&gt;UDP multicast&#34;]&#xA;    end&#xA;    subgraph C[&#34;Active containers · ROS_DOMAIN_ID=42&#34;]&#xA;        HT[&#34;hand_tracker&#34;]&#xA;        RV[&#34;ros_rviz&#34;]&#xA;        TS[&#34;topic_sniffer&#34;]&#xA;    end&#xA;    GZ[&#34;gazebo_sim&lt;br&gt;(commented out)&#34;]:::parked&#xA;    classDef parked stroke-dasharray: 5 5,opacity:0.55&#xA;    CAM --&gt; HT&#xA;    GPU --&gt; HT&#xA;    GPU --&gt; RV&#xA;    X11 --&gt; HT&#xA;    X11 --&gt; RV&#xA;    NET &lt;--&gt; HT&#xA;    NET &lt;--&gt; RV&#xA;    NET &lt;--&gt; TS&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Hole 1 — the network wall has to come down&#xA;    &lt;div id=&#34;hole-1--the-network-wall-has-to-come-down&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#hole-1--the-network-wall-has-to-come-down&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;network_mode&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;host&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;ipc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;host&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;This is the one that breaks stacks silently, so it is worth understanding rather than copying.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/featured.png" />
    </item>
    
  </channel>
</rss>
