<?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 Samarthya</title><link>https://samarthya.me/tags/docker/</link><description>Recent content in Docker on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Wed, 11 Sep 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>Failed to connect to bus: No medium found</title><link>https://samarthya.me/posts/failed-to-connect-to-bus-no-medium-found/</link><pubDate>Wed, 11 Sep 2024 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/failed-to-connect-to-bus-no-medium-found/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/failed-to-connect-to-bus-no-medium-found/mg_hu_65fd3660b056b34a.jpg"&#10; srcset="https://samarthya.me/posts/failed-to-connect-to-bus-no-medium-found/mg_hu_65fd3660b056b34a.jpg 800w, https://samarthya.me/posts/failed-to-connect-to-bus-no-medium-found/mg_hu_ee6ab60ffb0a7cb9.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/failed-to-connect-to-bus-no-medium-found/mg.jpg"&gt;&lt;/figure&gt;&#10;&lt;p&gt;If you have ever seen this error, you know the pain of a fellow linux user.&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Failed to connect to bus: No medium found&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;p&gt;This is message I get when I was trying to install &lt;code&gt;podman.socket&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Containers: A brief take</title><link>https://samarthya.me/posts/containers-a-brief-take/</link><pubDate>Fri, 17 May 2024 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/containers-a-brief-take/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="600"&#10; height="600"&#10; src="https://samarthya.me/posts/containers-a-brief-take/dock12.jpg"&#10; srcset="https://samarthya.me/posts/containers-a-brief-take/dock12.jpg 800w, https://samarthya.me/posts/containers-a-brief-take/dock12.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/containers-a-brief-take/dock12.jpg"&gt;&lt;/figure&gt;&#10;&lt;p&gt;The story of Linux containers is a tale of innovation and collaboration, with roots surprisingly deep in the history of the Linux operating system itself.&lt;/p&gt;</description></item><item><title>Non root `podman` and `molecule`</title><link>https://samarthya.me/posts/non-root-podman-and-molecule/</link><pubDate>Tue, 13 Feb 2024 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/non-root-podman-and-molecule/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Molecule testing an Ansible role through podman-docker and the user&amp;rsquo;s podman.socket, with containers running as non-root"&#10; width="1200"&#10; height="630"&#10; src="https://samarthya.me/posts/non-root-podman-and-molecule/molecule_hu_c9c0ad608e5dc687.png"&#10; srcset="https://samarthya.me/posts/non-root-podman-and-molecule/molecule_hu_c9c0ad608e5dc687.png 800w, https://samarthya.me/posts/non-root-podman-and-molecule/molecule.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/non-root-podman-and-molecule/molecule.png"&gt;&lt;figcaption&gt;Recreated in October 2026 from the post; the original image was lost&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;On my &lt;code&gt;Centos8&lt;/code&gt; I was facing issue when I was trying to run Molecule on a centos machine which is running &lt;code&gt;podman&lt;/code&gt; as a non root user. Also, I am using the driver – &lt;code&gt;docker&lt;/code&gt; and not &lt;code&gt;podman&lt;/code&gt;, so to overcome the aliases and references issues I have installed &lt;code&gt;podman-docker&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Buildah: https://buildah.io/</title><link>https://samarthya.me/posts/buildah-https-buildah-io/</link><pubDate>Tue, 07 Mar 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/buildah-https-buildah-io/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="low"&#10; alt=""&#10; src="https://buildah.io/images/buildah.png"&#10; &gt;&lt;/figure&gt;&#10;&lt;p&gt;Buildah is a command-line tool used for building and managing OCI-compliant images. It is an alternative to Docker Build that provides greater flexibility and control over the image building process.&lt;/p&gt;</description></item><item><title>Podman Machine: How &amp; Why?</title><link>https://samarthya.me/posts/podman-machine-how-why/</link><pubDate>Tue, 07 Mar 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/podman-machine-how-why/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Podman Machine: containers run by Podman inside a VM on your local system or a remote server, with the commands to create, start and run"&#10; width="1200"&#10; height="630"&#10; src="https://samarthya.me/posts/podman-machine-how-why/podman_hu_d5df1b0dd90194af.png"&#10; srcset="https://samarthya.me/posts/podman-machine-how-why/podman_hu_d5df1b0dd90194af.png 800w, https://samarthya.me/posts/podman-machine-how-why/podman.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/podman-machine-how-why/podman.png"&gt;&lt;figcaption&gt;Recreated in October 2026 from the post; the original image was lost&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;Podman&lt;/p&gt;</description></item><item><title>Vagrant-OSX</title><link>https://samarthya.me/posts/vagrant-osx-m1-2/</link><pubDate>Fri, 19 Aug 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/vagrant-osx-m1-2/</guid><description>&lt;p&gt;In the previous &lt;a href="https://samarthya.me/posts/vagrant-osx-m1/" &gt;blog&lt;/a&gt;, I was left with the error that had little information for me to debug. I realized since I migrated most of the files from my previous laptop it might be causing an issue.&lt;/p&gt;</description></item><item><title>Vagrant OSX</title><link>https://samarthya.me/posts/vagrant-osx-m1/</link><pubDate>Thu, 18 Aug 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/vagrant-osx-m1/</guid><description>&lt;p&gt;Having just bought an M1 – MacBook Pro the issue are mounting. The premier challenge was to get my Vagrant boxes configured with provider &lt;code&gt;virtualbox&lt;/code&gt; to run.&lt;/p&gt;&#10;&lt;p&gt;Since VirtualBox clearly calls it out “no support”&lt;/p&gt;</description></item><item><title>ServiceAccount</title><link>https://samarthya.me/posts/serviceaccount/</link><pubDate>Wed, 16 Feb 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/serviceaccount/</guid><description>&lt;p&gt;If you have seen errors like these when deploying using a &lt;code&gt;serviceAccount&lt;/code&gt;&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: could not get information about the resource ConfigMap &amp;#34;spinnaker-hellow-pipline&amp;#34; in namespace &amp;#34;spinnaker&amp;#34;: configmaps &amp;#34;spinnaker-hellow-pipline&amp;#34; is forbidden: User &amp;#34;system:serviceaccount:jenkins:default&amp;#34; cannot get resource &amp;#34;configmaps&amp;#34; in API group &amp;#34;&amp;#34; in the namespace &amp;#34;spinnaker&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&#10;&lt;h2 class="relative group"&gt;What?&#10; &lt;div id="what" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;A service account provides an identity for processes that run in a Pod.&lt;/li&gt;&#10;&lt;li&gt;Every namespace has a default &lt;code&gt;service account&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;When you create a pod, if you do not specify a service account, it is automatically assigned the &lt;code&gt;default&lt;/code&gt; service account in the same namespace.&lt;/li&gt;&#10;&lt;li&gt;To use a non-default service account, set the &lt;code&gt;spec.serviceAccountName&lt;/code&gt; field of a pod to the name of the service account you wish to use.&lt;/li&gt;&#10;&lt;li&gt;The service account has to exist at the time the pod is created, or it will be rejected.&lt;/li&gt;&#10;&lt;li&gt;The service account of an already created pod cannot be updated&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; Default RBAC policies grant scoped permissions to control-plane components, &lt;code&gt;nodes&lt;/code&gt;, and &lt;code&gt;controllers&lt;/code&gt;, but grant &lt;em&gt;no permissions&lt;/em&gt; to service accounts outside the &lt;code&gt;kube-system&lt;/code&gt; namespace (beyond discovery permissions given to all authenticated users).&#10;— Official documentation&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;h2 class="relative group"&gt;Example&#10; &lt;div id="example" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#example" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apiVersion: v1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kind: ServiceAccount&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;metadata:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; creationTimestamp: &amp;#34;2021-08-27T07:52:20Z&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name: default&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; namespace: default&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; resourceVersion: &amp;#34;XXXX&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; uid: XXXX&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;secrets:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- name: default-token-vcb75&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;p&gt;Let’s add docker-registry secret to the &lt;code&gt;SA&lt;/code&gt;. (My secret name is samarthya-docker)&lt;/p&gt;</description></item><item><title>`Devspace`: Managing Apps in Kubernetes</title><link>https://samarthya.me/posts/devspace-managing-apps-in-kubernetes/</link><pubDate>Tue, 15 Feb 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/devspace-managing-apps-in-kubernetes/</guid><description>&lt;h2 class="relative group"&gt;What is &lt;code&gt;devspace&lt;/code&gt;?&#10; &lt;div id="what-is-devspace" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-devspace" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;devspace&lt;/code&gt; is a CLI tool for kubernetes, which can help you configure, deploy, debug. and test your application inside Kubernetes.&lt;/p&gt;</description></item><item><title>Kaniko: Jenkins Pipeline</title><link>https://samarthya.me/posts/kaniko-jenkins-pipeline/</link><pubDate>Fri, 11 Feb 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/kaniko-jenkins-pipeline/</guid><description>&lt;p&gt;So there are many things I have been simultaneously trying to learn &amp;amp; one of those is to learn how you can configure a pipeline&lt;/p&gt;&#10;&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; Read more about Pipeline as Code (PaC)&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;h2 class="relative group"&gt;Objectives&#10; &lt;div id="objectives" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#objectives" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Learn Jenkins deployment on Kubernetes&lt;/li&gt;&#10;&lt;li&gt;Learn Jenkins Kubernetes Plugin&lt;/li&gt;&#10;&lt;li&gt;Learn Jenkins Pipeline (&lt;code&gt;Declarative&lt;/code&gt;)&lt;/li&gt;&#10;&lt;li&gt;How to build and deploy images in Kubernetes cluster&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;All right, with so many monkeys on my back I had to do things the way I know it works for me.&lt;/p&gt;</description></item><item><title>Spinnaker: Open Source Deployment</title><link>https://samarthya.me/posts/spinnaker-open-source-deployment/</link><pubDate>Sat, 05 Feb 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/spinnaker-open-source-deployment/</guid><description>&lt;p&gt;I have written a series of blogs to capture how you can deploy spinnaker on a &lt;code&gt;Kubernetes&lt;/code&gt; cluster &amp;amp; manage a helm chart deployment via pipeline.&lt;/p&gt;&#10;&lt;blockquote&gt;&lt;p&gt;The only way to enable more frequent changes is to invest in supporting people with better tooling, practices, and culture&lt;/p&gt;&#10;&lt;p&gt;From the Book &lt;code&gt;Spinnaker&lt;/code&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Spinnaker: docker-registry</title><link>https://samarthya.me/posts/spinnaker-docker-registry/</link><pubDate>Fri, 04 Feb 2022 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/spinnaker-docker-registry/</guid><description>&lt;p&gt;You will need a valid docker registry before you add any trigger in the pipeline in &lt;code&gt;Spinnaker&lt;/code&gt;&lt;/p&gt;&#10;&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; &lt;a href="https://spinnaker.io/docs/setup/install/providers/docker-registry/" target="_blank" rel="noreferrer"&gt;Official documentation&lt;/a&gt; is a good resource to seek more clarifications&#10;— Spinnaker&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;In my case I have already added an account my-docker-registry as under (The final result after you successfully configure Docker.&lt;/p&gt;</description></item><item><title>Docker: Clean in Bulk</title><link>https://samarthya.me/posts/docker-clean-in-bulk/</link><pubDate>Mon, 27 Dec 2021 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/docker-clean-in-bulk/</guid><description>&lt;p&gt;I will define the problem I was facing&lt;/p&gt;&#10;&lt;blockquote&gt;&lt;p&gt;Too many snapshots versions for the same image were there on my system&lt;/p&gt;&#10;&lt;p&gt;Freaky developer&lt;/p&gt;&#10;&lt;/blockquote&gt;&lt;p&gt;So to delete there was one hard hack way of cleaning it all&lt;/p&gt;</description></item><item><title>Docker network</title><link>https://samarthya.me/posts/docker-network/</link><pubDate>Tue, 04 Aug 2020 12:10:49 +0000</pubDate><guid>https://samarthya.me/posts/docker-network/</guid><description>&lt;h2 class="relative group"&gt;Learn by example&#10; &lt;div id="learn-by-example" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#learn-by-example" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;In this blog let&amp;rsquo;s learn how to create a bridge network. By definition - Bridge networks are usually used when your applications run in standalone containers that need to communicate&lt;/p&gt;</description></item><item><title>Dockerfile</title><link>https://samarthya.me/posts/dockerfile/</link><pubDate>Wed, 15 Jul 2020 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/dockerfile/</guid><description>&lt;p&gt;&lt;code&gt;docker build&lt;/code&gt; builds a docker image by reading instructions (directives) from a text file called &lt;code&gt;Dockerfile&lt;/code&gt;&lt;/p&gt;&#10;&lt;blockquote&gt;&lt;p&gt;The build is run by the Docker daemon, not by the CLI&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 class="relative group"&gt;Hello World!&#10; &lt;div id="hello-world" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#hello-world" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;I would move in stages, like a good learning guide always recommends.&lt;/p&gt;</description></item><item><title>Docker</title><link>https://samarthya.me/posts/docker-ubuntu-a-refresher/</link><pubDate>Sat, 11 Jul 2020 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/docker-ubuntu-a-refresher/</guid><description>&lt;p&gt;Usually I use Centos, but this time I wanted to try out docker swarm and ubuntu was the preferred option due to the options and supporting blogs available.&lt;/p&gt;&#10;&lt;blockquote&gt;&lt;p&gt;Do read – &lt;a href="https://docs.docker.com/get-started/#containers-and-virtual-machines" target="_blank" rel="noreferrer"&gt;https://docs.docker.com/get-started/#containers-and-virtual-machines&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;docker.com&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item></channel></rss>