<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Devops on JinerX blog</title><link>https://jinerx.github.io/tags/devops/</link><description>Recent content in Devops on JinerX blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>© 2026 Jędrzej Sajnóg</copyright><lastBuildDate>Thu, 26 Mar 2026 12:21:52 +0100</lastBuildDate><atom:link href="https://jinerx.github.io/tags/devops/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Operations Cheatsheet</title><link>https://jinerx.github.io/learning_log/docker-operations-cheatsheet/</link><pubDate>Thu, 26 Mar 2026 12:21:52 +0100</pubDate><guid>https://jinerx.github.io/learning_log/docker-operations-cheatsheet/</guid><description>&lt;h2 class="relative group"&gt;Theory
 &lt;div id="theory" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#theory" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;namespaces - abstraction which makes it possible for the system to isolate processes from one another. Processes internally store a pointer to a namespaces when calling specified commands &amp;ldquo;dealing with&amp;rdquo; a specific kernel resource it first checks for appropriate namespace and returns appropriate data. Some important namespaces:
&lt;ul&gt;
&lt;li&gt;PID namespaces - process isolation - container can only see processes made inside the container&lt;/li&gt;
&lt;li&gt;network namespace - netowork isolation - each container gets it&amp;rsquo;s own ports,ip addresses, etc. Connected via &lt;code&gt;docker0&lt;/code&gt; bridge to the host network.&lt;/li&gt;
&lt;li&gt;mount namespace - filesystem isolation - each container gets it&amp;rsquo;s own filesystem hierarchy, mount points etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;cgroups - used to limit the system resources available to the container, CPU, memory etc.&lt;/li&gt;
&lt;li&gt;union mount filesystem - filesystem technique used in docker containers. We define the filesystem in multiple layers (defined typically in &lt;code&gt;Dockerfile&lt;/code&gt;) during build we only look at the &amp;ldquo;top&amp;rdquo;. If conflicting upper layers overwrite the lower layers. All layers beside the top one are read only, the top one is read/write.&lt;/li&gt;
&lt;li&gt;docker daemon - runs in the background and manages the containers, volumes etc. We communicate with it via CLI. If docker is installed on linux we communicate with it via exposed socket at &lt;code&gt;/var/run/docker.sock&lt;/code&gt;. If installed on a different system a virtual machine with linux is setup and we communicate with the docker via socket at the same location but within the VM.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;Basic structures
 &lt;div id="basic-structures" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#basic-structures" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;images - contain information about how to build the container.&lt;/li&gt;
&lt;li&gt;containers - working instances where we actually operate and that do the &amp;ldquo;actual&amp;rdquo; work.&lt;/li&gt;
&lt;li&gt;volumes - data storage objects can be mounted onto containers&lt;/li&gt;
&lt;li&gt;networks - define how containers communicate with each other&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;Basic commands
 &lt;div id="basic-commands" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#basic-commands" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;with all of those &lt;code&gt;--help&lt;/code&gt; flag lists all available commands with a short description&lt;/p&gt;</description></item></channel></rss>