<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sai Tanmaiyee on Medium]]></title>
        <description><![CDATA[Stories by Sai Tanmaiyee on Medium]]></description>
        <link>https://medium.com/@saitanmaiyee?source=rss-cea44fadf648------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uEhlkfo1KYtSninRZdV5wA.jpeg</url>
            <title>Stories by Sai Tanmaiyee on Medium</title>
            <link>https://medium.com/@saitanmaiyee?source=rss-cea44fadf648------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:56:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saitanmaiyee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Docker Deep Dive]]></title>
            <link>https://medium.com/@saitanmaiyee/docker-deep-dive-7bb027e6f9d4?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bb027e6f9d4</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 02:09:56 GMT</pubDate>
            <atom:updated>2026-03-17T00:47:00.999Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Has Been Running This Whole Time — Do You Know What It’s Actually Doing?</h3><p>How going deep on Docker’s internals transforms you from someone who uses a tool into someone who truly commands it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgvB-ON5bEvWoPvCSelmvg.png" /></figure><p>Picture this: it is your first week on a new team. A container is misbehaving in staging. Everyone is poking at it — restarting it, tweaking environment variables, Googling error codes. Then someone sits down, asks two calm questions, and within minutes traces the issue to a misconfigured network namespace. No panic. No guessing. Just clarity — because they understood exactly how Docker works beneath the surface, and the problem had nowhere to hide.</p><p>That is what deep knowledge looks like in practice. Not magic. Not seniority. Just the compound return on time spent understanding fundamentals. Docker is one of the most elegant tools in modern software — and the engineers who take time to understand it deeply find that it unlocks something bigger: a way of thinking about systems that makes everything else clearer too. This article is an invitation to build that foundation.</p><blockquote><strong><em>“A man cannot understand the art he is studying if he only looks for the end result without taking the time to delve deeply into the reasoning of the study.”</em></strong></blockquote><blockquote><strong>— Miyamoto Musashi, <em>The Book of Five Rings</em></strong></blockquote><p>This article is for every curious engineer who wants more than surface-level familiarity. For the beginner who wants to build a rock-solid mental model from day one. For the DevOps professional who uses Docker every day and is ready to understand exactly what those daily commands are triggering beneath the surface. Knowing the internals does not slow you down — it makes everything you already know click into place at a deeper level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flYg6WsjbIaxKdXVBk7G5A.png" /></figure><h3>The Problem Docker Was Born to Solve</h3><p>For a long time, the standard way to deploy software was simple: one application per physical server. It felt safe and predictable. But it was expensive. Servers sat mostly idle, doing little while costing a lot. When you needed more capacity, you bought more hardware. When you needed less, that hardware just waited. The industry knew this could not go on — and so it went looking for a better way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*_0SvgbBytfP4m4qiLdrt6g.png" /><figcaption><em>Fig. 1 — One app per server: safe, but expensive and wasteful.</em></figcaption></figure><h4>Running More on Less — The VM Era</h4><p>That better way came in the form of Virtual Machines. VMware made it possible to run multiple applications on a single physical server, each in its own isolated environment. Hardware utilization improved. Costs came down. It was a genuine leap forward — and for a while, it felt like the problem was solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*tcmyZeeGeiqc7BhGUnRi5g.png" /></figure><p>But a new problem quietly crept in. Every VM needed its own full operating system — its own memory, disk space, patching schedule, and monitoring setup. The more VMs you ran, the more resources were being spent just keeping those operating systems alive, rather than running your actual applications. VMs were better than what came before. They just were not the final answer.</p><p>While the rest of the world was still wrestling with VMs, Google had quietly been running a different approach at massive scale internally. They contributed key building blocks to the Linux kernel — cgroups and namespaces — that made it possible to isolate processes without a full operating system. Most people never heard about it. But those contributions planted the seed for what was coming next.</p><h3>Docker: Simple by Design, Powerful by Nature</h3><p>Before Docker was a tool, it was a company — and before that, it was a side project solving a very real problem. Docker Inc. was founded by Solomon Hykes, a French-born American developer and entrepreneur, and is based out of Palo Alto, California. The company did not start as a container platform. It started as <strong>dotCloud</strong> — a Platform as a Service (PaaS) business, helping developers deploy applications to the cloud.</p><p>dotCloud delivered its services on top of Linux containers. To manage and deploy those containers internally, the team built their own tooling. That in-house tool — practical, focused, and born out of necessity — would eventually become Docker. The name itself has a quiet charm to it: <em>docker</em> is a British expression, short for <em>dock worker</em>, referring to someone who loads and unloads cargo from ships. A fitting name for a tool designed to package and ship software anywhere in the world.</p><p>By 2013, the PaaS side of the business was struggling. dotCloud made a decisive bet: drop the platform, double down on the tooling. The company rebranded as Docker Inc., open-sourced the Docker project, and never looked back. Solomon Hykes has since moved on from the company — but what he helped create reshaped an entire industry.</p><p>When Docker launched publicly in 2013, it did not invent containers — but it did something arguably more important: it made them accessible to everyone. You did not need to be a Linux expert anymore. You wrote a simple file, ran one command, and your application was packaged, isolated, and ready to run anywhere. That simplicity was the breakthrough — and the software world has not been the same since.</p><p>What made Docker truly powerful was that it eventually worked <em>everywhere</em>. Microsoft worked closely with Docker to bring container support to Windows. Today, Docker Desktop on Windows supports both Linux and Windows containers via WSL 2 — a lightweight Linux environment built right into Windows. And on a Mac? Docker Desktop quietly runs a tiny Linux VM under the hood, so your containers behave exactly as they would on any Linux server. The platform differences are handled for you — but now you know what is actually happening underneath.</p><blockquote>💡 The Core Idea</blockquote><blockquote>A container is not a mini virtual machine. It is just a regular process — running on the same operating system as everything else on your machine, but in its own private space. No separate OS to boot. No extra memory just to keep the lights on. That is why containers start in seconds, stay lightweight, and can run anywhere Docker runs. <strong>Same kernel, complete isolation.</strong></blockquote><h3>How Docker Actually Works: The Architecture</h3><p>At the highest level, Docker follows a <strong>client-server architecture</strong>. The Docker Client is what you interact with — your terminal, your commands. The server side is where the real work happens. Between them sits an API that carries every instruction you give from one side to the other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*5pLmumTx9Aoch_iPc2H2tw.png" /><figcaption><em>Fig. 4 — The Docker Client sends instructions. The server side executes them. A registry stores and serves images.</em></figcaption></figure><h4>Inside the Docker Engine</h4><p>When engineers talk about “Docker,” they often mean the Docker Engine — the server-side component that does all the heavy lifting. But the Engine is not a single program. It is a modular system, assembled from small, specialised components drawn from open-source projects like the Open Container Initiative (OCI), the Cloud Native Computing Foundation (CNCF), and the Moby project. Think of it less like a single application and more like a well-engineered machine made of interchangeable parts.</p><p>Like a car engine — you press the accelerator and it moves, but underneath, a precise set of components are doing very specific jobs.</p><h4>How the Engine Was Born — And Why It Changed</h4><p>When Docker first launched, the Engine had just two components: the <strong>Docker Daemon</strong> and <strong>LXC</strong>. The daemon was a large, monolithic binary — it handled everything. The API, image building, container execution, volumes, networking — all of it lived inside a single process. LXC handled the hard work of interfacing with the Linux kernel: constructing namespaces, setting up cgroups, and actually starting containers.</p><p>This worked — until it did not. LXC was Linux-specific, which made Docker difficult to run on other platforms. And the monolithic daemon was becoming a bottleneck: slow to innovate, hard to maintain, and risky to change. A bug anywhere could affect everything. Docker needed to evolve.</p><p>The first move was replacing LXC with <strong>libcontainer</strong> — Docker’s own tool for interfacing with the Linux kernel. This gave Docker full control over container creation without depending on a Linux-specific external library. The second move was breaking the monolithic daemon apart into smaller, focused components. Two of those components — <strong>containerd</strong> and <strong>runc</strong> — are now at the heart of how every container starts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*4wio3k7a6CdlQGmy8qR2hg.png" /><figcaption><em>Fig. 5 — Early Docker was one big binary. Modern Docker is a chain of specialised, interoperable components.</em></figcaption></figure><h4>runc and containerd: The Engine’s Inner Workings</h4><p><strong>runc</strong> lives at the lowest level of the stack. It is a lightweight CLI wrapper around libcontainer — the component that actually talks to the Linux kernel. When a container needs to start, runc is the one pulling together the namespaces and cgroups, setting up the isolated environment, and launching the process. It operates at the OS level, and it does exactly one job: start containers. Once a container is running, runc exits. Its work is done.</p><p><strong>containerd</strong> sits one level above runc, managing the container lifecycle at a higher level — start, stop, pause, delete. It was originally designed to be a small, focused tool. But over time, the ecosystem asked more of it. Kubernetes, for example, needed containerd to handle image pulls and pushes as well — so that capability was added. Today, containerd is a fully featured container runtime, adopted well beyond Docker itself.</p><pre># The three binaries that make Docker&#39;s engine run<br>/usr/bin/dockerd      # The Docker Daemon - receives and coordinates<br>/usr/bin/containerd   # High-level runtime - manages container lifecycle<br>/usr/bin/runc         # Low-level runtime - talks directly to the Linux kernel</pre><h3>What Actually Happens When You Run a Container</h3><p>Now that you know the components, here is where it gets satisfying — watching them all work together in the half-second it takes to start a container. Run these two commands on any Docker host:</p><pre>docker run -d --name ctr1 nginx<br>docker ps</pre><p>Here is what actually happens. The Docker Client takes your command, converts it into an API request, and sends it to the daemon. On Linux, the daemon listens on a local Unix socket at /var/run/docker.sock — though it can also be exposed over the network for remote access. The daemon receives the request, interprets it, and rather than handling container creation itself, delegates to containerd via a CRUD-style API over gRPC. containerd takes the Docker image and converts it into an OCI-compliant bundle — a standardised format that any compatible runtime can understand — then instructs runc to use that bundle to create a new container. runc reaches directly into the Linux kernel, pulling together all the necessary constructs: namespaces to isolate the container&#39;s view of the system, cgroups to govern its resource usage, and everything else needed to bring an isolated process to life. The container starts as a child process of runc — and the moment it is running, runc exits quietly, leaving containerd to monitor the lifecycle from that point on. By the time docker ps returns your container ID, that entire chain has already completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*8HwHobNqtv5Crdn7_XSTFw.png" /><figcaption><em>Fig. 6 — From your command to a running container: every component in the chain plays its part.</em></figcaption></figure><h3>Docker Networking: How Containers Talk to the World</h3><p>A container that cannot communicate is not very useful. Whether it needs to talk to another container on the same host, reach a database on a remote server, or accept traffic from the outside world — networking is what makes all of that possible. Docker’s networking model is thoughtfully designed, and understanding it at the right level of depth will save you hours of confusion when things do not connect the way you expect.</p><p>At the highest level, Docker networking is built on three components that work as a layered system: the <strong>Container Network Model</strong>, <strong>libnetwork</strong>, and <strong>drivers</strong>. Each has a distinct role — specification, implementation, and execution.</p><h4>The Container Network Model (CNM)</h4><p>The CNM is Docker’s design specification for networking. It does not do any work itself — it defines the fundamental building blocks that any Docker network must have. Think of it as the architectural blueprint that everything else is built from. The CNM defines three core constructs: sandboxes, endpoints, and networks.</p><p>A <strong>sandbox</strong> is an isolated network stack inside a container. It contains everything the container needs to communicate — its Ethernet interfaces, ports, routing tables, and DNS configuration. Each container gets its own sandbox, completely separate from every other container on the host.</p><p>An <strong>endpoint</strong> is a virtual network interface. Its job is to connect a sandbox to a network. A container always has at least one endpoint — but it can have more. A container with two endpoints is connected to two networks simultaneously, which is how Docker enables cross-network communication for specific containers.</p><p>A <strong>network</strong> is a virtual switch — a logical grouping of endpoints that need to communicate with each other. Endpoints on the same network can reach each other. Endpoints on different networks cannot — unless a container bridges them by having an endpoint on each.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*bMlMLGg1Enxhrl0fyNp3HQ.png" /><figcaption><em>Fig. 8 — CNM in action: sandboxes isolate, endpoints connect, networks group. A container with two endpoints bridges two networks.</em></figcaption></figure><h4>libnetwork: The CNM Brought to Life</h4><p>A specification without an implementation is just a document. libnetwork is what turns the CNM into something real. It is Docker’s open-source networking library — part of the Moby project — and it runs on both Linux and Windows. Every time Docker creates a network, connects a container, or resolves a hostname between containers, libnetwork is doing the work.</p><p>Like the Docker Engine’s evolution from a monolithic daemon, networking code was originally baked directly into the daemon. Over time it became bloated and difficult to maintain — the same story. Docker extracted it, refactored it into libnetwork, and gave it a clear, focused responsibility: own the control plane. That means service discovery, managing network state, exposing the management APIs that higher-level tools use to create and inspect networks.</p><h4>Drivers: Where the Actual Networking Happens</h4><p>If libnetwork owns the control plane, drivers own the data plane. A driver is what actually creates and manages a network — it implements a specific networking topology and handles all the low-level plumbing that makes packets flow between containers. libnetwork and drivers have a clean division of responsibility: libnetwork manages the what, drivers implement the how.</p><p>Every network you create in Docker is owned by exactly one driver. That driver is responsible for creating the network, managing its configuration, and ensuring containers can communicate across it according to the topology it implements. Docker ships several built-in drivers — called native or local drivers — out of the box. These include <strong>bridge</strong> for single-host networking, <strong>overlay</strong> for multi-host networking across a cluster, and <strong>macvlan</strong> for assigning containers a MAC address and making them appear as physical devices on the network. Third-party vendors also write their own drivers to support more advanced topologies and enterprise network configurations.</p><h4>Single-Host Bridge Networks</h4><p>The bridge driver is the most common starting point — and the default. Every Docker host automatically gets a single-host bridge network simply called bridge. Under the hood, this maps to a Linux bridge interface in the host&#39;s kernel called docker0. Unless you explicitly tell Docker to use a different network with the --network flag, every container you run lands on this default bridge network.</p><pre># List all networks on the Docker host<br>docker network ls<br><br># Output will show something like:<br># NETWORK ID     NAME      DRIVER    SCOPE<br># 1a2b3c4d5e6f   bridge    bridge    local<br># 7g8h9i0j1k2l   host      host      local<br># 3m4n5o6p7q8r   none      null      local<br><br># Inspect the default bridge network<br>docker network inspect bridge</pre><p>You can inspect it directly. Run docker network ls to see all networks on your host, then docker network inspect bridge to see its full configuration — the subnet, gateway, connected containers, and the underlying bridge interface it maps to:</p><p>The output of inspect reveals the full picture: the subnet Docker assigned (172.17.0.0/16 by default), the gateway IP, the name of the underlying Linux bridge (docker0), and a list of every container currently connected to it. This is the kind of information that turns a vague networking problem into a solvable one.</p><h4>Reaching the Outside World: Port Mappings</h4><p>Containers on a bridge network can talk to each other freely — but by default, nothing outside the Docker host can reach them. To make a container accessible from the outside, you map one of its ports to a port on the Docker host itself. Traffic arriving at that host port gets forwarded into the container.</p><p>It works, but it is worth knowing its limitations. Port mappings are a bit clunky — each mapping ties up a port on the host, you cannot have two containers map to the same host port, and managing many of them at scale gets unwieldy fast. For single-host setups and development environments it is perfectly fine. For production at any real scale, overlay networks and dedicated ingress solutions handle this far more elegantly. Here is the basic pattern:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*uHPR7N2EXuATDlRUZgvjRA.png" /></figure><pre># Map port 8080 on the host to port 80 inside the container<br>docker run -d -p 8080:80 --name my-web nginx<br><br># Now hitting http://localhost:8080 on the host<br># routes traffic into the container on port 80<br><br># Verify with docker ps — the PORTS column shows the mapping<br>docker ps<br># CONTAINER ID   IMAGE   PORTS                  NAMES<br># a1b2c3d4e5f6   nginx   0.0.0.0:8080-&gt;80/tcp   my-web</pre><h3>Volumes and Persistent Data</h3><p>Every container has two kinds of data to think about: data you want to keep, and data you do not. That distinction — persistent vs. non-persistent — shapes how Docker handles storage, and understanding it upfront saves a lot of head-scratching later.</p><p><strong>Non-persistent data</strong> is temporary. Scratch files, cached results, intermediate state — things that only matter while the container is alive. Docker handles this automatically. <strong>Persistent data</strong> is the data your application genuinely needs to survive — database records, uploaded files, configuration that changes over time. For this, Docker gives you volumes.</p><h4>What Happens Inside a Container’s Storage Layer</h4><p>Here is something worth understanding properly, because it surprises a lot of engineers. Docker containers were designed to be stateless — ephemeral by nature. And yet, even a stateless container needs somewhere to write temporary data while it is running. Docker solves this in a clever way.</p><p>When Docker creates a container, it stacks all the read-only image layers on top of each other and places a thin writable layer of local storage on top. If your application updates a file or writes new data, those changes land in that local storage layer. Docker then merges it seamlessly with the read-only layers below, so from inside the container everything looks like one unified filesystem. You never see the layers — you just see files.</p><p>The catch is that this local storage layer is tightly coupled to the container’s lifecycle. When you delete the container, that writable layer goes with it. Every byte of data written there is gone. On Linux, this storage lives under /var/lib/docker/&lt;storage-driver&gt;/. It is fast and convenient — and completely impermanent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*xqdTAnys5SOfuQWWzGfKMg.png" /><figcaption><em>Fig. 10 — The writable layer sits on top of read-only image layers. It disappears when the container is deleted.</em></figcaption></figure><h4>Volumes: Persistent Data Done Right</h4><p>Volumes are Docker’s answer to persistent storage. They are separate objects — independent of any container — with their own lifecycle. You can create a volume, attach it to a container, delete that container, and the volume and its data are completely unaffected. You can then attach the same volume to a new container and pick up exactly where you left off.</p><p>When you mount a volume into a container, you mount it to a directory. Anything your application writes to that directory gets written into the volume — not into the ephemeral local storage layer. From the application’s perspective nothing is different. From a data durability perspective, everything is.</p><p>Three things make volumes the right choice for stateful workloads. First, they are independent objects — not tied to any container’s lifecycle. Second, they can map to specialised external storage systems: cloud block storage, NFS shares, on-premises SAN systems. Third, multiple containers on different Docker hosts can mount the same volume to read and share the same data — which is foundational for distributed applications.</p><h4>Creating and Managing Volumes</h4><p>Working with volumes day-to-day is straightforward. Here is the full lifecycle:</p><pre># Create a new volume<br>docker volume create myvol<br><br># By default, Docker uses the built-in local driver<br># Use -d to specify a different driver (must be installed first)<br>docker volume create -d some-third-party-driver myvol<br><br># Inspect a volume — driver, scope, and mountpoint<br>docker volume inspect myvol<br><br># Remove a specific volume<br>docker volume rm myvol<br><br># Remove all volumes not currently mounted to a container<br>docker volume prune</pre><p>The inspect command is worth paying attention to. It shows you three things that matter: the <strong>Driver</strong> (what storage backend is managing this volume), the <strong>Scope</strong> (local means it only exists on this machine), and the <strong>Mountpoint</strong> (the actual path on the host where the volume&#39;s data lives — for local driver volumes, this is under /var/lib/docker/volumes/).</p><h4>Volume Drivers: Going Beyond Local Storage</h4><p>By default, Docker creates volumes using the built-in local driver. It is simple and reliable — but local driver volumes live only on the host machine they were created on. That is fine for single-host setups, but it becomes a limitation the moment you need data to outlive a host or be accessible from multiple machines.</p><p>Third-party volume drivers solve this. They plug directly into Docker’s volume API and connect your containers to external storage systems — cloud block storage like AWS EBS or Google Persistent Disk, NFS shares, on-premises SAN systems, and more. From the container’s perspective, the volume behaves exactly like a local one. Under the hood, the driver is handling all the complexity of talking to the external system. You install the driver first, then use the -d flag when creating a volume to tell Docker which driver to use:</p><pre># Use a third-party driver (must be installed on the host first)<br>docker volume create -d some-third-party-driver myvol</pre><p>This is what makes volumes genuinely powerful for production workloads. The storage backend can be anything — and your application code never needs to know the difference.</p><h4>Mounting a Volume to a Container</h4><p>Attaching a volume when you run a container is a single flag. Use --mount with a source (the volume name) and a target (the directory inside the container where it gets mounted):</p><pre># Mount volume &#39;bizol&#39; to /vol inside the container<br>docker run -it --name volumuu \<br>  --mount source=bizol,target=/vol \<br>  alpine<br><br># If &#39;bizol&#39; already exists — Docker uses it as-is, data intact<br># If &#39;bizol&#39; does not exist — Docker creates it automatically<br># Either way, anything written to /vol inside the container<br># is written to the volume, not the ephemeral local storage layer</pre><p>That last behaviour is worth emphasizing. Docker does not require you to pre-create a volume before mounting it — if you reference a volume that does not exist yet, Docker creates it on the spot. And if you reference one that already exists, Docker uses it without disturbing anything already stored in it. The volume outlives the container in both cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*6TGLzDdDUZjJv0nogwjBvw.png" /><figcaption><em>Fig. 11 — Volumes outlive containers. Delete the container, the data stays. Mount it to a new container, it is right where you left it.</em></figcaption></figure><h3>Working With Images</h3><p>Before we go any further, a quick note on terminology. When you hear <em>image</em>, <em>Docker image</em>, <em>container image</em>, or <em>OCI image</em> — they all mean the same thing. The names vary depending on context and who is speaking, but the concept is identical throughout.</p><h4>What Is a Docker Image?</h4><p>An image is a read-only package that contains everything needed to run an application — the application code, its dependencies, minimal operating system constructs, and metadata. It is entirely self-contained. One image can be used to start as many containers as you need, and each gets its own isolated environment. They all trace back to the same blueprint, but they run independently of each other.</p><p>Here is a mental model worth holding onto: <strong>images are like stopped containers</strong>. In fact, you can stop a running container and create a new image directly from it — preserving its exact state. Images are <strong>build-time constructs</strong>. Containers are <strong>runtime constructs</strong>. One is the blueprint, the other is the blueprint brought to life. And once a container is running, they are bound — you cannot delete an image while containers built from it are still running. Docker will refuse, and rightly so.</p><h4>How Docker Builds an Image — Layers</h4><p>Docker does not build images as single flat files. It builds them by stacking independent, read-only layers — each representing a discrete set of changes or additions. One layer might carry the base OS components, another the application’s runtime dependencies, another the application code itself. Docker stacks them all and presents them to the container as one seamless, unified filesystem. The layers are there — you just never see the seams.</p><p>This layered design is one of Docker’s smartest architectural choices. Layers are shared and reused across images. If two images share the same base OS layer, Docker stores that layer once on disk — not twice. Pull ten nginx-based images and that common foundation is downloaded a single time. It keeps disk usage lean and pull times fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*X5n3I0Iq9hqBpMc52jITAQ.png" /></figure><h4>Why Images Stay Small</h4><p>Images should be lean by design. A container is built to run a single application or microservice — nothing more. That means the image should not carry build tools, debugging utilities, or anything the application does not need at runtime. A great example of this philosophy in action is <strong>Alpine Linux</strong>. The Alpine base image is around 3MB. It does not ship six different shells, three package managers, or a collection of tools you might need once every five years. If the app does not need it at runtime, it does not go in.</p><p>The other reason images stay small: they do not include an OS kernel. Containers share the kernel of the host they run on — so the image only needs the minimal user-space components that wrap around it. The kernel is already there. The image just brings everything else.</p><h4>Pulling Images</h4><p>When you pull an image, Docker downloads it into your <strong>local repository</strong> — the area on your machine where Docker stores images for convenient access. On Linux, this lives at /var/lib/docker/&lt;storage-driver&gt;/. Run a pull and watch what happens:</p><pre>docker pull nginx<br><br># Using default tag: latest              ← no tag specified, Docker assumes latest<br># latest: Pulling from library/nginx     ← pulled from Docker Hub official repo<br># 2f44b7a888fa: Pull complete            ← layer 1 downloaded<br># 8b7dd3ed1dc3: Pull complete            ← layer 2 downloaded<br># 35497dd96569: Already exists           ← layer already in local cache, skipped<br># 36664b6ce66b: Pull complete            ← layer 4 downloaded<br># Digest: sha256:a484819eb60...           ← cryptographic digest of the image<br># Status: Downloaded newer image for nginx:latest</pre><p>Notice two things. First, one layer said <em>Already exists</em> — Docker recognised it already had that layer cached from a previous pull, so it reused it rather than downloading it again. This layer sharing is one of the reasons Docker is so efficient with disk space. Second, Docker defaulted to the latest tag and the Docker Hub registry — both of which you can override by being explicit.</p><h4>Image Registries, Repositories, and Tags</h4><p>Images live in registries. The most common is Docker Hub, but third-party internet-based registries and secure on-premises registries are widely used in production. Docker is opinionated: unless you tell it otherwise, it defaults to Docker Hub.</p><p>Inside a registry, images are organised into <strong>repositories</strong>, and repositories contain one or more images distinguished by tags. The full name of an image — its fully qualified reference — looks like this:</p><pre># Format: registry/user-or-org/repository:tag<br>docker.io/mycompany/my-app:v2.1<br># docker.io  → registry (Docker Hub)<br># mycompany  → user or organisation<br># my-app     → repository name<br># v2.1       → tag (version identifier)</pre><p>When you omit the registry, Docker fills in docker.io. When you omit the tag, Docker fills in latest. Pulling official images is particularly clean — official repositories sit at the top level of Docker Hub&#39;s namespace and carry a green &quot;Docker Official Image&quot; badge. You only need the repository name:</p><pre># Pull official nginx (latest tag, Docker Hub, top-level namespace)<br>docker pull nginx<br><br># Pull unofficial image — user/repo:tag format<br>docker pull mycompany/my-app:v2.1</pre><p>A word on unofficial repositories: there are excellent images in the community, but it is good practice to start with healthy scepticism. Official images are vetted, kept up to date, well-documented, and follow security best practices. Unofficial images are not guaranteed to be any of those things.</p><p>One image can carry multiple tags — which is common for versioning. An image might be tagged as both 1.25 and stable simultaneously, pointing to identical content. Run docker images and you will see the same image ID appear under multiple tag rows:</p><pre>docker images nginx<br><br># REPOSITORY   TAG       IMAGE ID       CREATED        SIZE<br># nginx        latest    a99a39d070bf   2 weeks ago    192MB<br># nginx        1.25      a99a39d070bf   2 weeks ago    192MB   ← same IMAGE ID<br># nginx        stable    a99a39d070bf   2 weeks ago    192MB   ← same IMAGE ID</pre><h4>Image Layers: How Docker Builds Images</h4><p>Every Docker image is a collection of loosely connected, read-only layers stacked in the order they were built. Each layer contains one or more files. Pull an image and Docker shows you the layers as it downloads them. Inspect one and you see the full picture:</p><pre>docker inspect nginx<br><br># Inside the output, look for the &quot;Layers&quot; array:<br># &quot;RootFS&quot;: {<br>#   &quot;Type&quot;: &quot;layers&quot;,<br>#   &quot;Layers&quot;: [<br>#     &quot;sha256:2f44b7a888fa...&quot;,   ← base layer (Debian slim OS components)<br>#     &quot;sha256:8b7dd3ed1dc3...&quot;,   ← nginx runtime dependencies<br>#     &quot;sha256:36664b6ce66b...&quot;,   ← nginx config and entrypoint<br>#   ]<br># }</pre><p>Every Docker image starts with a <strong>base layer</strong>. For most images, this is a minimal OS like Debian slim or Alpine. Each subsequent instruction in a Dockerfile that adds new content creates a new layer on top. Under the hood, Docker uses a <strong>storage driver</strong> — almost universally overlay2 on modern systems — to stack these layers and present them to the container as a single unified filesystem. Alternative drivers like zfs, btrfs, and vfs exist but are rarely used outside of specific environments.</p><p>Layer sharing extends to the registry side as well. When you pull multiple images that share common base layers, Docker downloads each shared layer only once and reuses it across images. This is why pulling a second nginx-based image is often dramatically faster — most of the layers are already in your local cache.</p><h4>Pulling Images by Digest</h4><p>Pulling by tag has a quiet but serious problem: tags are mutable. The image behind nginx:latest today is not necessarily the same image that was behind nginx:latest last week. Someone can push a new image to that tag at any time. For production systems, this unpredictability is a real risk.</p><p>The solution is image digests. Docker uses a <strong>content addressable storage model</strong> — every image gets a cryptographic hash of its content, called a digest. Because the digest is derived from the image’s content, two different images can never share the same digest. You can view digests for your local images like this:</p><pre>docker images --digests alpine<br><br># REPOSITORY   TAG      DIGEST                                    IMAGE ID       SIZE<br># alpine       latest   sha256:c5b1261d6d3e...bfa64779a56   a606584aa9aa   7.8MB<br><br># Pull by digest — guarantees exactly the image you expect<br>docker pull alpine@sha256:c5b1261d6d3e...bfa64779a56<br><br># Check digest before pulling with buildx imagetools<br>docker buildx imagetools inspect alpine</pre><p>It is also worth knowing that image digests and layer digests are separate things. An image is a manifest file with metadata and a list of layers — the image digest is a hash of that manifest. Each layer has its own digest, derived from the layer’s content. They serve different purposes but are both part of Docker’s commitment to content integrity.</p><h4>Multi-Architecture Images</h4><p>Docker has always prided itself on simplicity. But for a while, running the same image across different CPU architectures — x86, ARM, RISC-V — was anything but simple. Teams had to maintain separate tags for each architecture, and it was messy. Multi-architecture images fixed this elegantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*8xDbpSv33k6MYbIBaj1ZcQ.png" /></figure><p>Docker and the registry API became clever enough to hide architecture-specific images behind a single tag. Pull alpine on an Intel Mac, an ARM-based MacBook, or a Raspberry Pi — and you get the correct version automatically. The mechanism behind this is a <strong>manifest list</strong>: a list of architectures supported by an image tag, where each supported architecture has its own manifest describing the layers needed to build it. You can inspect this structure directly:</p><pre>docker buildx imagetools inspect alpine<br><br># Name: docker.io/library/alpine:latest<br># MediaType: application/vnd.oci.image.index.v1+json<br># Digest: sha256:c5b1261d6d3e...<br>#<br># Manifests:<br>#   Name: docker.io/library/alpine:latest@sha256:...<br>#   MediaType: application/vnd.oci.image.manifest.v1+json<br>#   Platform:  linux/amd64          ← Intel/AMD 64-bit<br>#<br>#   Name: docker.io/library/alpine:latest@sha256:...<br>#   Platform:  linux/arm64          ← ARM 64-bit (Apple Silicon, AWS Graviton)<br>#<br>#   Name: docker.io/library/alpine:latest@sha256:...<br>#   Platform:  linux/arm/v7         ← 32-bit ARM (Raspberry Pi)</pre><p>One tag. Many architectures. Docker picks the right one for the machine you are running on — silently, automatically, every time.</p><h4>Vulnerability Scanning With Docker Scout</h4><p>Knowing what is inside your image is just as important as knowing how to build it. Recent versions of Docker Desktop ship with <strong>Docker Scout</strong> pre-installed — a tool that scans your images for known vulnerabilities and gives you actionable guidance on how to fix them.</p><pre># Quick summary of vulnerabilities in an image<br>docker scout quickview nginx<br><br># Full CVE list for an image<br>docker scout cves nginx<br><br># Example output from quickview:<br># Target   │ nginx:latest<br># digest   │ sha256:a484819e...<br># ✓ SBOM of image already cached<br># ✓ Pulled fresh data from Docker Scout<br>#   0C  4H  12M  2L  ← Critical, High, Medium, Low vulnerability counts</pre><p>Scout analyses the Software Bill of Materials (SBOM) of your image — the full list of packages, libraries, and components it contains — and cross-references it against known CVE databases. The earlier you catch vulnerabilities in your image, the cheaper they are to fix.</p><h4>Deleting Images</h4><p>Cleaning up images you no longer need is straightforward. Use docker rmi to remove a specific image, or docker image prune to clean up dangling images — images that are no longer tagged and not referenced by any container:</p><pre># Remove a specific image by name or ID<br>docker rmi nginx<br><br># Remove multiple images at once<br>docker rmi nginx alpine redis<br><br># Remove all dangling images (untagged, unreferenced)<br>docker image prune<br><br># Remove all unused images (not just dangling)<br>docker image prune -a<br><br># Docker will refuse to delete an image with running containers<br># Stop or remove the containers first, then delete the image</pre><h3>Working With Containers</h3><p>If images are the blueprint, containers are what you actually run. A container is a runtime instance of an image — a live, isolated process that your application runs inside. You can start one container from an image, or a hundred. The image stays read-only and untouched. Each container gets its own private environment, its own writable layer, and its own life.</p><p>Containers are designed to be <strong>stateless</strong>, <strong>ephemeral</strong>, and <strong>immutable</strong>. Stateless means they should not hold onto data that needs to outlive them — that is what volumes are for. Ephemeral means they are temporary by nature — born, used, discarded. Immutable means once deployed, you do not change them. If something needs fixing, you build a new image, deploy a new container, and replace the old one. You do not patch a running container. This design philosophy is what makes containers so reliable and reproducible at scale. Each container should run a single process or microservice — one responsibility, cleanly contained.</p><h4>How Docker Creates the Read-Write Layer</h4><p>Images are read-only. So how can containers write data? Docker solves this elegantly. When you start a container, Docker places a thin writable layer on top of the read-only image layers. All writes from the container — new files, modified files, logs — go into this layer. The image underneath never changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Gqid9KtKejBHgu9w6HVhBg.png" /></figure><p>Each container has its own dedicated writable layer. That means ten containers started from the same image each have their own isolated space to write to, without interfering with each other. When you stop a container, Docker keeps that writable layer — so when you restart it, your changes are still there. When you delete a container, Docker deletes its writable layer too. Permanently. That data is gone. This is exactly why volumes exist for anything you need to keep.</p><h4>Starting a Container</h4><p>The docker run command is the most common way to start a container. Here is a typical example — starting a web server, running it in the background, and mapping a port so you can reach it from your browser:</p><pre>docker run -d --name webserver -p 5005:8080 mycompany/my-app:v1<br><br># -d              → run in background (detached/daemon mode)<br># --name          → give the container a human-readable name<br># -p 5005:8080    → map port 5005 on the host to port 8080 in the container<br># mycompany/my-app:v1 → the image to start from</pre><p>When you hit return, the Docker client converts your command into an API request and sends it to the Docker daemon. The daemon searches its local image cache first. If it does not find the image, it reaches out to Docker Hub. Once it has a local copy, the daemon passes the request to containerd, which instructs runc to create the container and start the application. The whole sequence — from your command to a running container — happens in seconds.</p><p>Verify it is running with docker ps, and confirm the image is cached with docker images:</p><pre>docker ps<br><br># CONTAINER ID   IMAGE                  COMMAND         STATUS        PORTS                    NAMES<br># b5594b3b8b3f   mycompany/my-app:v1   &quot;node app.js&quot;   Up 2 mins     0.0.0.0:5005-&gt;8080/tcp   webserver<br><br>docker images<br><br># REPOSITORY           TAG    IMAGE ID       CREATED        SIZE<br># mycompany/my-app     v1     3f5b281b914b   2 days ago     159MB</pre><h4>How Containers Know What to Run</h4><p>When a container starts, Docker needs to know which command to execute inside it. There are three ways this gets defined, and understanding the difference matters when you are debugging or customizing behaviour.</p><p>An <strong>Entrypoint</strong> instruction defines the main process the container always runs. It cannot be overridden from the CLI — anything you pass after the image name on the command line gets appended to it as an argument. A <strong>Cmd</strong> instruction provides a default command, but unlike Entrypoint, it can be fully overridden by a CLI argument. If neither is set in the image, you must pass a command directly on the CLI when running the container.</p><p>You can inspect exactly what an image specifies with docker inspect:</p><pre>docker inspect mycompany/my-app:v1 | grep Entrypoint -A 3<br># &quot;Entrypoint&quot;: [<br>#     &quot;node&quot;,<br>#     &quot;./app.js&quot;    ← Docker runs this command every time the container starts<br># ],</pre><h4>Connecting to a Running Container</h4><p>docker exec has two modes. <strong>Interactive mode</strong> connects your terminal to a shell process running inside the container — it behaves like an SSH session into a remote machine. <strong>Remote execution mode</strong> sends a single command to the container and prints the output back to your terminal without opening an interactive session.</p><pre># Interactive mode — open a shell inside the container<br>docker exec -it webserver sh<br># /src #    ← your terminal is now inside the container<br># Remote execution - run a command and get the output, no shell needed<br>docker exec webserver ps<br># PID   USER     TIME  COMMAND<br>#   1   root     0:00  node ./app.js   ← the main app process<br>#  42   root     0:00  ps              ← already exited after printing</pre><p>One important detail: typing exit inside an interactive session terminates the shell process and returns you to your local terminal. But if the shell is PID 1 — the container&#39;s main process — exiting it will kill the container entirely. To leave an interactive session without stopping the container, use Ctrl PQ instead. It detaches your terminal cleanly, leaving the container running.</p><h4>Inspecting Container Processes</h4><p>Most containers run a single process. That process is always <strong>PID 1</strong> — the container’s main application process. Everything else in the container exists to support it. When PID 1 stops, the container stops. There is no recovery, no restart — unless you have a restart policy configured. This is by design. Containers are meant to run one thing, and when that thing ends, so does the container.</p><pre># Run ps inside the container to see what is running<br># /src # ps<br># PID   USER     TIME  COMMAND<br>#   1   root     0:00  node ./app.js   ← PID 1, the main process — kill this, container dies<br>#  13   root     0:00  sh              ← your exec session shell<br>#  22   root     0:00  ps              ← already exited</pre><h4>Stopping, Restarting, and Deleting</h4><p>The container lifecycle is straightforward — and knowing what happens to your data at each stage is important:</p><pre># Stop a container gracefully (10-second grace period for cleanup)<br>docker stop webserver<br># Restart a stopped container - R/W layer and its data are preserved<br>docker restart webserver<br># List running containers<br>docker ps<br># List all containers including stopped ones<br>docker ps -a<br># Delete a container (removes the R/W layer - data is gone)<br>docker rm webserver<br># Force delete a running container without stopping it first<br>docker rm webserver -f</pre><p>Stop and restart preserve the container’s writable layer — your data and any changes made inside the container survive. Delete is permanent. The writable layer is gone, and starting a new container from the same image gives you a clean slate.</p><h4>Self-Healing With Restart Policies</h4><p>By default, if a container’s main process dies, the container stops and stays stopped. In production, that is rarely acceptable. Restart policies tell Docker what to do when a container exits — automatically, without human intervention.</p><p>You set a restart policy with the --restart flag when starting a container:</p><pre># Always restart — even after daemon restarts<br>docker run -d --restart always --name webserver mycompany/my-app:v1<br><br># Restart unless manually stopped<br>docker run -d --restart unless-stopped --name webserver mycompany/my-app:v1<br><br># Restart only on failure (exit code != 0), up to 5 times<br>docker run -d --restart on-failure:5 --name webserver mycompany/my-app:v1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Nydv7Bjgkc5U9k88SIVRvQ.png" /></figure><p>🔁always</p><p>Always restart the container regardless of exit code. Also restarts when the Docker daemon restarts. Good for critical services.</p><p>⏸️ unless-stopped</p><p>Same as always, except it will not restart containers that were manually stopped — even after a daemon restart.</p><p>❌ on-failure</p><p>Restart only when the container exits with a non-zero exit code. Optionally cap the number of retries with :N.</p><p>🚫 no (default)</p><p>Never automatically restart. The container stays stopped until you manually start it again. Default if no policy is set.</p><h4>Debugging Slim Containers With Docker Debug</h4><p>Slim images are a best practice — no shell, no package manager, no debugging tools. Smaller attack surface, smaller image, less to maintain. But slim images create a problem: when something goes wrong inside a container, you have nothing to debug with. No shell to exec into. No tools to run.</p><p>Docker Debug solves this without compromising the container. It attaches a shell to a running container and mounts a toolbox — a directory called /nix — loaded with debugging utilities. The container itself never sees /nix. It is invisible to the container&#39;s own processes. The moment you exit the debug session, /nix is unmounted and removed — no trace left behind.</p><pre># Open a Docker Debug session on a running container<br>docker debug webserver<br><br># This is an attach shell:<br># - Changes you make are visible to the container immediately<br># - The /nix toolbox directory is invisible to the container<br># - Changes persist across restarts when debugging running containers<br># - Changes are lost when debugging stopped containers or images<br># docker &gt;  ← you now have a full shell with debugging tools available<br># docker &gt; ping google.com      ← works, even if ping is not in the container<br># docker &gt; vim /etc/config      ← works, even if vim is not in the container</pre><p>Docker Debug works on running containers, stopped containers, and even images directly. When used on a running container, any file changes you make are live and immediately visible to the running application. When used on a stopped container or image, Docker creates a sandboxed environment — changes are temporary and discarded when the session ends.</p><h3>Containerizing an Application</h3><p>Docker makes it easy to build, share, and run applications. We call this process <strong>containerization</strong>. At its simplest, it follows five steps: write your application code and list its dependencies, create a Dockerfile that tells Docker how to build and run the app, build the app into an image, push the image to a registry, and run a container from that image. That is the entire loop — from code to running container.</p><h4>Creating the Dockerfile</h4><p>The Dockerfile is the heart of the build process. It is a plain text file containing step-by-step instructions that tell Docker exactly how to assemble your image. In the past, you had to write this file entirely by hand. Newer versions of Docker support the docker init command — it reads your project directory, analyses your application, and automatically generates a Dockerfile implementing good practices. It asks you a few simple questions about your runtime, package manager, and port, and then creates the file for you.</p><p>A generated Dockerfile for a Node.js application looks like this:</p><pre># Pull a specific version of the Node Alpine base image<br>ARG NODE_VERSION=20.8.0<br>FROM node:${NODE_VERSION}-alpine<br># Set environment and working directory<br>ENV NODE_ENV production<br>WORKDIR /usr/src/app<br># Install dependencies using bind mounts and npm cache<br>RUN --mount=type=bind,source=package.json,target=package.json \<br>    --mount=type=bind,source=package-lock.json,target=package-lock.json \<br>    --mount=type=cache,target=/root/.npm \<br>    npm ci --omit=dev<br># Run as non-root user for security<br>USER node<br># Copy application source code into the image<br>COPY . .<br># Document the port the app listens on<br>EXPOSE 8080<br># Command to run when a container starts<br>CMD node app.js</pre><p>Each instruction in a Dockerfile falls into one of two categories. Instructions like FROM, RUN, COPY, and WORKDIR add content to the image — files, directories, installed packages — and each one creates a new image layer. Instructions like EXPOSE, ENV, CMD, and ENTRYPOINT do not add content. They only record metadata — information Docker uses when running the container. The rule of thumb: if it adds something to the filesystem, it creates a layer. If it only describes behaviour, it does not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*TTZnZPkquirgBNKSgvCeQA.png" /></figure><h4>Building the Image</h4><p>With a Dockerfile in place, building the image is a single command. The -t flag tags it with a name, and the trailing period tells Docker to use your current directory as the build context — the folder containing your application files:</p><pre>docker build -t myapp:v1 .<br># [+] Building 16.2s (12/12) FINISHED<br># =&gt; [1/4] FROM docker.io/library/node:20.8.0-alpine   ← base layer pulled<br># =&gt; [2/4] WORKDIR /usr/src/app                        ← new layer created<br># =&gt; [3/4] RUN npm ci --omit=dev                       ← new layer: dependencies<br># =&gt; [4/4] COPY . .                                    ← new layer: app source code<br># =&gt; naming to docker.io/library/myapp:v1</pre><p>Each numbered step in the output maps directly to an instruction in your Dockerfile. You can verify the image exists and inspect its layers with docker images and docker inspect.</p><h4>Pushing to Docker Hub and Running the App</h4><p>Once built, you can push the image to Docker Hub so it is accessible from anywhere — your teammates can pull it, your production servers can deploy it, your CI/CD pipeline can reference it. The process is three steps: log in, re-tag the image with your Docker Hub username, and push:</p><pre># Step 1: Login<br>docker login<br># Step 2: Re-tag with your Docker Hub username<br># Format: docker tag &lt;current-tag&gt; &lt;dockerhub-username&gt;/&lt;repo&gt;:&lt;tag&gt;<br>docker tag myapp:v1 mycompany/myapp:v1<br># Step 3: Push to Docker Hub<br>docker push mycompany/myapp:v1<br># Run the app - map host port 5005 to container port 8080<br>docker run -d --name myapp -p 5005:8080 mycompany/myapp:v1</pre><p>Re-tagging is necessary because Docker uses the image name to determine which registry and repository to push to. If you try to push myapp:v1 without a Docker Hub username prefix, Docker will not know where to send it and the push will fail.</p><h3>Moving to Production With Multi-Stage Builds</h3><p>When it comes to container images, size matters — and big is bad. A large image means slower pulls, more potential vulnerabilities, and a wider attack surface. Every megabyte you do not ship is a megabyte that cannot be exploited, cannot slow you down, and does not need patching.</p><p>The problem is that building applications requires tools — compilers, build runtimes, package managers — that your application does not need once it is compiled and running. Multi-stage builds solve this cleanly: use one stage to do the heavy lifting of building the app with all the tools you need, then use a final stage to copy only the compiled output into a slim, minimal image. The build tools never make it into production.</p><h4>How Multi-Stage Builds Work</h4><p>A multi-stage Dockerfile has multiple FROM instructions — each one defines a new build stage. Stages can reference each other, copy outputs from each other, and run in parallel when they have no dependencies between them. Only the final stage produces the image you actually ship.</p><p>Here is a real example using a Go application. Go compiles to a standalone binary that needs no runtime — making it perfect for demonstrating the power of multi-stage builds:</p><pre># Stage 0: base — pull build tools and dependencies<br>FROM golang:1.23.4-alpine AS base<br>WORKDIR /src<br>COPY go.mod go.sum .<br>RUN go mod download<br>COPY . .<br># Stage 1: build-client - compile the client binary (runs in parallel with stage 2)<br>FROM base AS build-client<br>RUN go build -o /bin/client ./cmd/client<br># Stage 2: build-server - compile the server binary (runs in parallel with stage 1)<br>FROM base AS build-server<br>RUN go build -o /bin/server ./cmd/server<br># Stage 3: prod - copy compiled binaries into a minimal scratch image<br>FROM scratch AS prod<br>COPY --from=build-client /bin/client /bin/<br>COPY --from=build-server /bin/server /bin/<br>ENTRYPOINT [ &quot;/bin/server&quot; ]</pre><p>Stage 0 pulls the golang:1.23.4-alpine image — over 350MB — and uses it to install dependencies and copy in the source code. Stages 1 and 2 each compile one binary, and because they both start from the same base stage without depending on each other, the builder runs them in parallel. Stage 3 pulls the scratch image — completely empty — and copies in only the two compiled binaries. That is the image you ship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Oy4A315w4khcpBynfezoQw.png" /></figure><pre>docker build -t myapp:prod .<br></pre><p>The final production image is 26MB. The base stage that built it was over 350MB. None of that bloat made it into what you deploy. That is the power of multi-stage builds — the cost of building stays in the build environment, and only the result crosses into production.</p><p>💡 Build Targets</p><p>You can build <strong>multiple images from a single Dockerfile</strong> using the --target flag. Split the final stage into separate named stages — one per output image — and tell Docker which to build. This is how teams produce separate client and server images from the same source without duplicating Dockerfiles.</p><p>§ 10</p><h3>Buildx, BuildKit, and Multi-Architecture Builds</h3><p>Behind every docker build command is a build system made of two parts: a client called <strong>Buildx</strong> and a server called <strong>BuildKit</strong>. Understanding this separation is what unlocks multi-architecture builds, remote build infrastructure, and advanced caching — capabilities that make a real difference in teams building at scale.</p><h4>Buildx and BuildKit</h4><p><strong>Buildx</strong> is Docker’s build client, implemented as a CLI plugin. It supports all of BuildKit’s latest features — multi-stage builds, multi-architecture images, advanced caching, and more. It has been the default build client since Docker v23.0 and Docker Desktop v4.19. Every time you run docker build, you are already using Buildx.</p><p><strong>BuildKit</strong> is the build engine — the server side. It does the actual work of reading your Dockerfile, pulling base images, executing instructions, and producing the final image. You can configure Buildx to talk to multiple BuildKit instances, and each instance is called a <strong>builder</strong>. Point Buildx at a local builder, and your builds run on your machine. Point it at a remote builder — such as Docker Build Cloud — and builds run on remote infrastructure, with a shared cache your entire team can benefit from.</p><pre># List your configured builders<br>docker buildx ls<br><br># NAME/NODE        DRIVER/ENDPOINT    PLATFORMS<br># builder *        docker-container<br>#   builder0       desktop-linux      linux/arm64, linux/amd64, linux/riscv64, ...<br># cloud-myorg      cloud<br>#   linux-arm64    cloud://...arm64   linux/arm64*<br>#   linux-amd64    cloud://...amd64   linux/amd64*</pre><p>The asterisk marks your default builder. The docker-container driver runs BuildKit inside a dedicated local container and supports many architectures via QEMU emulation. The cloud driver sends builds to Docker Build Cloud, where they run on native hardware — faster, more reliable, and with a shared team cache.</p><h4>Multi-Architecture Builds</h4><p>One of the most powerful things Buildx enables is building images for multiple CPU architectures from a single command — even architectures different from the machine you are building on. Docker on an ARM machine can build AMD images. Docker on an AMD machine can build ARM images. You do not need separate machines or separate Dockerfiles.</p><p>First, create a builder that supports the architectures you need:</p><pre># Create a new local builder using the docker-container driver<br>docker buildx create --driver=docker-container --name=container \<br>  --platform=linux/arm64,linux/amd64<br><br># Make it the default builder<br>docker buildx use container</pre><p>Then build for multiple platforms in one command and push directly to Docker Hub:</p><pre>docker buildx build --builder=container \<br>  --platform=linux/amd64,linux/arm64 \<br>  -t mycompany/myapp:v1 --push .<br><br># [linux/arm64 2/5] RUN apk add --update nodejs npm   19.0s  ← ARM build<br># [linux/amd64 2/5] RUN apk add --update nodejs npm   17.4s  ← AMD build (parallel)<br># =&gt; pushing manifest for docker.io/mycompany/myapp:v1        ← single tag, two images</pre><p>Both architecture builds run in parallel. The result is a single tag on Docker Hub that automatically serves the correct image for any architecture that pulls it. Someone on an Apple Silicon Mac, an AMD server, or an ARM-based cloud instance all run docker pull mycompany/myapp:v1 — and each gets exactly the right image, silently and automatically.</p><p>If you have access to Docker Build Cloud, the same command works with a cloud builder — replacing local emulation with native hardware, dramatically faster builds, and a shared cache across your team:</p><pre>docker buildx build --builder=cloud-myorg-builder \<br>  --platform=linux/amd64,linux/arm64 \<br>  -t mycompany/myapp:v1 --push .</pre><h3>Good Practices When Building Images</h3><p>Building an image that works is the baseline. Building one that is fast, lean, and secure is the real skill. Two practices make the biggest difference: leveraging the build cache, and installing only what your application actually needs.</p><h4>Leverage the Build Cache</h4><p>BuildKit caches every layer it creates during a build. The next time you build the same image, it checks each instruction against its cache. If the instruction and its inputs are identical to a previous build, it reuses the cached layer — that step completes instantly. This is called a <strong>cache hit</strong>. If anything has changed, the cache is invalidated from that point forward — every subsequent instruction must be re-executed. This is a <strong>cache miss</strong>.</p><p>The order of your Dockerfile instructions is therefore a performance decision. Instructions that change frequently — like copying your application source code — should go near the end. Instructions that rarely change — like installing system dependencies — should go near the top. That way, your builds benefit from the cache for as long as possible before hitting something that changed.</p><pre># Good order — stable things first, frequently-changing things last<br>FROM alpine<br>RUN apk add --update nodejs npm     # ← rarely changes, cached almost always<br>COPY . /src                         # ← changes every build — cache invalidates here<br>WORKDIR /src<br>RUN npm install                     # ← re-runs every time because COPY above changed<br>ENTRYPOINT [&quot;node&quot;, &quot;./app.js&quot;]</pre><p>Docker is smart about COPY and ADD instructions. It checksums the files being copied — if the file contents have not changed since the last build, the cached layer is used. If even one byte has changed, the cache is invalidated for that instruction and everything after it. This means restructuring which files you copy, and when, is one of the highest-leverage optimisations available to you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*LZPfWBdmGagb6LN8trjYJg.png" /></figure><p>A few things worth knowing about the cache:</p><p>If you are using a local builder, the cache is only available to builds running on your own machine. If you are using Docker Build Cloud, the cache is shared across your entire team — meaning a teammate’s build can benefit from layers you built, and vice versa. For large teams building frequently, this shared cache is genuinely significant. You can also bypass the cache entirely with the --no-cache flag on docker build — useful when you need a completely clean build to rule out a stale cache as the cause of a problem.</p><h4>Only Install What You Need</h4><p>It is a common joke in software development that building an application installs the entire internet. It is funny because it is often true. A simple Node.js application with two declared dependencies — Express and Pug — can end up downloading over 110 packages by the time their transitive dependencies are resolved. Every one of those packages is a potential vulnerability, a megabyte of image size, and a file that needs to exist, be scanned, and be maintained.</p><p>Most package managers offer a way to install only what is strictly required. The apt package manager supports --no-install-recommends, which skips suggested and recommended packages and only installs what is listed in the Depends field. npm supports --omit=dev to exclude development dependencies from production builds. The exact flag varies by package manager, but the principle is the same: be deliberate about what you install, and install only what the application genuinely needs to run.</p><p>The combination of these two practices — a well-ordered Dockerfile that exploits the build cache, and disciplined dependency management that keeps images lean — is the foundation of building images that are fast to build, safe to ship, and easy to maintain.</p><h3>Multi-Container Apps With Docker Compose</h3><p>Modern applications are rarely a single process. A real-world app might have a web frontend, a backend API, a database, a cache, a logging service, and an authentication layer — all running as separate containers, all needing to find each other, share data, and start in the right order. Managing that complexity with individual docker run commands and shell scripts is painful, error-prone, and impossible to version control properly.</p><p>Docker Compose solves this by letting you describe your entire multi-container application in a single YAML file — and deploy it all with one command.</p><h4>How Compose Came to Exist</h4><p>When Docker was new, it had no native way to manage multi-container applications. A company called Orchard Labs stepped in and built a tool called <strong>Fig</strong> — it ran on top of Docker and let you define complex multi-container apps in a simple YAML file. Behind the scenes, Fig translated that file into the appropriate docker commands. It was elegant, practical, and immediately popular.</p><p>Fig was so well regarded that Docker Inc. acquired Orchard Labs entirely and rebranded Fig as <strong>Docker Compose</strong>. The command-line tool was renamed from fig to docker-compose, and later folded into the main Docker CLI as its own compose sub-command. Today it ships as part of Docker itself. There is also a community-led <strong>Compose Specification</strong> — an open standard for defining multi-container apps — that Docker Compose implements as the reference implementation.</p><h4>Installing Compose</h4><p>All modern versions of Docker ship with Compose pre-installed. You no longer need to install it separately. Verify it is available with:</p><pre>docker compose version<br># Docker Compose version v2.31.0</pre><p>Make sure you are using docker compose (with a space) rather than the older docker-compose (with a hyphen) — the latter is the legacy standalone binary and is no longer the recommended way to run Compose.</p><h4>The Compose File</h4><p>A Compose file is a YAML file — usually called compose.yaml — that describes everything your application needs: its services, networks, and volumes. It is the single source of truth for your entire application topology. Treat it like code. Keep it in version control.</p><p>The file is structured around three top-level keys:</p><pre># Top-level structure of a compose.yaml file<br>volumes:           # ← define named volumes here<br>  myapp_data:<br>networks:          # ← define networks here<br>  myapp_net:<br>services:          # ← define your application services here<br>  frontend:<br>    ...<br>  backend:<br>    ...<br>  database:<br>    ...</pre><p>Each block under services defines one microservice. Here is a realistic three-service application — a frontend, a backend API, and a model server — showing the most important configuration options you will use day to day:</p><pre>volumes:<br>  model_data:              # ← persistent volume for the model server<br>networks:<br>  appnet:                  # ← shared network all services connect to<br>services:<br>  frontend:<br>    image: mycompany/app:fe-v1     # ← pull this image for the frontend container<br>    command: npm run start         # ← override the image&#39;s CMD<br>    networks:<br>      - appnet<br>    ports:<br>      - &quot;3000:3000&quot;                # ← host:container port mapping<br>    environment:<br>      - PORT=3000<br>      - HOST=0.0.0.0<br>    depends_on:<br>      - backend                   # ← wait for backend to start first<br>  backend:<br>    image: mycompany/app:be-v1<br>    networks:<br>      - appnet<br>    ports:<br>      - &quot;8000:8000&quot;<br>    environment:<br>      - MODEL_HOST=http://model:11434   # ← services resolve each other by name<br>    depends_on:<br>      model:<br>        condition: service_healthy      # ← wait for model to pass healthcheck<br>  model:<br>    build: ./model                 # ← build image from Dockerfile in ./model folder<br>    networks:<br>      - appnet<br>    ports:<br>      - &quot;11434:11434&quot;<br>    volumes:<br>      - model_data:/root/.ollama  # ← mount volume for persistent model storage<br>    environment:<br>      - MODEL=${MODEL:-mistral:latest}  # ← use env var with default fallback<br>    deploy:<br>      resources:<br>        limits:<br>          memory: 8G              # ← cap memory allocation for this service<br>    healthcheck:<br>      test: [&quot;CMD-SHELL&quot;, &quot;curl -s http://localhost:11434/api/tags&quot;]<br>      interval: 10s               # ← check every 10 seconds<br>      timeout: 5s                 # ← each check must complete within 5 seconds<br>      retries: 50                 # ← retry up to 50 times before marking unhealthy<br>      start_period: 600s          # ← give it 10 minutes to start before checks begin</pre><p>A few things worth understanding from this structure. Services reference each other by name — http://model:11434 works because Compose places all services on the same network and Docker&#39;s DNS resolves service names automatically. The depends_on key controls startup order — service_healthy is stricter than the default, meaning it waits for the healthcheck to pass, not just for the container to start. The build key tells Compose to build an image from a local Dockerfile rather than pulling one. And environment variables can use shell-style defaults with ${VAR:-default} syntax.</p><p>When a service uses command, it overrides the image&#39;s CMD instruction. If the image uses ENTRYPOINT, the command value is appended to it as an argument instead.</p><h4>Deploying and Managing the App</h4><p>Once your Compose file is ready, deploying the entire application is a single command:</p><pre># Deploy the app (pulls/builds images, creates network, volume, and containers)<br>docker compose up<br># Deploy in the background (detached mode)<br>docker compose up --detach<br># Use a custom-named Compose file<br>docker compose -f ./path/to/myapp.yaml up</pre><p>Docker reads the Compose file, pulls or builds all required images, creates the network and volume, and starts all containers in the correct order based on their depends_on configuration. The project name — taken from the directory name — is prepended to every resource Docker creates, making it easy to identify which resources belong to which app. A container called frontend in a project directory called myapp becomes myapp-frontend-1. The trailing number exists because a service can run multiple identical replicas.</p><h3>The Essential Compose Commands</h3><pre># Check status of all running Compose apps<br>docker compose ls<br># NAME      STATUS        CONFIG FILES<br># myapp     running(3)    /home/user/myapp/compose.yaml<br># List containers in the current app with status and ports<br>docker compose ps<br># NAME              SERVICE    STATUS    PORTS<br># myapp-backend-1   backend    Up        0.0.0.0:8000-&gt;8000/tcp<br># myapp-frontend-1  frontend   Up        0.0.0.0:3000-&gt;3000/tcp<br># myapp-model-1     model      Up        0.0.0.0:11434-&gt;11434/tcp<br># Show processes running inside each container<br>docker compose top<br># Stop all containers - preserves containers, networks, volumes, images<br>docker compose stop<br># Restart a stopped app - note: Compose file changes are NOT picked up on restart<br>docker compose restart<br># Bring the app down - removes containers and networks, keeps volumes and images<br>docker compose down<br># Bring down and delete everything including volumes and images<br>docker compose down --volumes --rmi all</pre><p>The distinction between stop and down is important. docker compose stop halts the containers but leaves all resources intact — containers, volumes, images all survive. It is the equivalent of pausing the app. docker compose down tears down containers and networks but keeps volumes and images by default, so your data is safe and redeployment is fast. Only docker compose down --volumes --rmi all removes everything completely — useful for a clean slate, but it means the next deployment has to pull images and recreate volumes from scratch.</p><p>One more detail worth knowing: changes you make to the Compose file while the app is stopped will <em>not</em> take effect when you run docker compose restart. Compose file changes are only picked up when you run docker compose up — which re-reads the file and applies everything defined in it.</p><h3>Docker Security: Layers, Defaults, and Why You Should Care</h3><p>Security is the topic most engineers postpone until something goes wrong. And in containerized environments, something going wrong is not just a broken application — it can mean a compromised host, exposed secrets, or a vulnerable image running silently in production for months. The good news is that Docker takes security seriously, and much of it is already working for you before you touch a single configuration file. The better news is that when you understand how it works, you can make it work significantly harder.</p><p>Good security is not a single wall. It is <strong>layers</strong> — defence in depth. Docker provides multiple overlapping layers of protection: Linux kernel technologies that have existed for decades, Docker-level controls that wrap and simplify them, and tools for scanning, signing, and protecting sensitive data. None of these layers is perfect alone. Together, they build a posture that is genuinely difficult to breach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*_ajMbEzQqNkEk5dF5HCIsQ.png" /><figcaption><em>Fig. 15 — Docker’s security model is built on multiple overlapping layers. Each one adds protection the others cannot provide alone.</em></figcaption></figure><h4>Linux Security Technologies: The Foundation</h4><p>Docker’s container isolation is built entirely on Linux kernel primitives. Understanding them is not optional knowledge — it is the foundation that explains why containers behave the way they do, and where their boundaries are.</p><p><strong>Kernel Namespaces</strong> are the primary mechanism for building containers. They virtualise operating system constructs — process trees, network stacks, filesystems, users — so that each container gets its own isolated view of the system. Every Docker container gets its own instances of six namespaces: Process ID (pid), Network (net), Filesystem/mount (mnt), Inter-process communication (ipc), User (user), and UTS (uts — for hostname). A process inside a container cannot see processes in other containers. It cannot access the host&#39;s filesystem. It cannot reach another container&#39;s network stack. Each container believes it is the only thing running on the machine.</p><p>But namespaces provide isolation, not limits. A container isolated from others can still consume every CPU cycle and every byte of RAM on the host if nothing stops it — and that is where control groups come in.</p><p><strong>Control Groups (cgroups)</strong> govern how much of the shared host resources any container is allowed to use. Think of a hotel — each room is private, but the guests all share the electricity supply, the water system, and the internet connection. Without limits, one guest could consume everything and deny service to everyone else. Cgroups are those limits. Docker uses them to cap CPU, memory, network I/O, and disk I/O per container. They are what prevent a single misbehaving container from bringing down your entire host.</p><p><strong>Capabilities</strong> solve a problem that trips up many engineers: the Linux root user is too powerful to run containers as safely, but non-root users are often too restricted to be useful. Capabilities break root’s privileges into granular, individually assignable permissions — things like binding to low-numbered ports (CAP_NET_BIND_SERVICE), changing file ownership (CAP_CHOWN), or rebooting the system (CAP_SYS_BOOT). Docker starts containers with a reduced set of capabilities by default and lets you drop more or add specific ones. The principle is least privilege: give the container exactly what it needs to do its job, and nothing more.</p><p><strong>Mandatory Access Control (MAC)</strong> — implemented via AppArmor or SELinux depending on your Linux distribution — applies mandatory security policies on top of the standard Linux permission model. Docker automatically applies a default AppArmor or SELinux profile to all new containers. These profiles define what the container’s processes are allowed to do at the kernel level, independent of what the process itself might try to do. You can customise these profiles, but even the defaults provide meaningful protection.</p><p><strong>seccomp</strong> (secure computing mode) limits which system calls a container’s processes can make to the host kernel. The Linux kernel has over 300 syscalls — and not all of them should be available to container processes. Docker’s default seccomp profile disables approximately 40–50 of them, blocking access to dangerous operations that no well-behaved application should need. Like capabilities and MAC, this adds a layer that makes exploitation significantly harder even if an attacker gains code execution inside a container.</p><h4>Docker Scout: Know What Is Inside Your Images</h4><p>An image that works is not necessarily an image that is safe. Every container runs on a stack of packages, libraries, and dependencies — and any one of them might carry a known vulnerability that attackers can exploit. The gap between “this works” and “this is secure” is exactly where image scanning lives.</p><p>Docker Scout is Docker’s native vulnerability scanning platform. It analyses your image, produces a Software Bill of Materials (SBOM) — a complete inventory of every package and library inside the image — and cross-references it against databases of known vulnerabilities (CVEs). The result is a ranked report of what is vulnerable, how severe each issue is, and what version you need to upgrade to in order to fix it.</p><pre># Quick vulnerability overview<br>docker scout quickview mycompany/myapp:v1<br># Target   │ mycompany/myapp:v1  │  0C  4H  2M  0L<br># digest   │ sha256:b4210d0aa52f  │<br># 0C = Critical  4H = High  2M = Medium  0L = Low<br># Full CVE list with remediation advice<br>docker scout cves mycompany/myapp:v1<br># Shows each vulnerable package, CVE ID, severity,<br># affected version range, and the fixed version to upgrade to</pre><p>The reason this matters deeply: once you know about a vulnerability, you are responsible for it. Ignorance is not a defence in a security incident. Building vulnerability scanning into your workflow — not as an afterthought but as a standard step before any image reaches production — is one of the highest-leverage security investments you can make as an engineer.</p><h4>Docker Content Trust: Sign and Verify Everything</h4><p>Pulling an image from a registry over the internet is an act of trust. You trust that the image you pull is the one you intended to pull, that it has not been tampered with in transit, and that it actually came from who you think it came from. Without Docker Content Trust (DCT), that trust is implicit and unverifiable.</p><p>DCT lets you cryptographically sign images when you push them and verify signatures when you pull them. A signed image carries a cryptographic proof of its origin and integrity. If the image has been modified since it was signed — even by a single byte — the verification fails and Docker refuses to use it. When you set DOCKER_CONTENT_TRUST=1, Docker enforces this verification for every pull. Unsigned images simply cannot be used.</p><pre># Generate a signing key pair<br>docker trust key generate mykey<br># Associate the key with a repository<br>docker trust signer add --key mykey.pub mykey mycompany/myapp<br># Sign and push an image<br>docker trust sign mycompany/myapp:v1<br># Enforce signed images on this host - unsigned images will be refused<br>export DOCKER_CONTENT_TRUST=1<br># Inspect signing data for an image<br>docker trust inspect mycompany/myapp:v1 --pretty</pre><p>In teams, DCT creates a clear chain of custody for your images. You know exactly who signed what, and when. It makes supply chain attacks significantly harder — an attacker who compromises a registry cannot silently swap your image for a malicious one without invalidating the signature.</p><h4>Docker Secrets: Never Put Credentials in an Image</h4><p>Every application handles sensitive data — passwords, API keys, TLS certificates, SSH keys. The most common mistake engineers make is baking these directly into images or passing them as environment variables in plain text. Both approaches leave your credentials exposed in image layers, container inspect output, and system logs.</p><p>Docker Secrets is the right answer. Secrets are stored encrypted in the cluster store (only available in Swarm mode), encrypted in transit over the network, and mounted into containers as files in a temporary in-memory filesystem — not as environment variables, not as image layers. Only services explicitly granted access to a secret can see it. The moment a container using a secret stops, Docker destroys the in-memory filesystem and flushes the secret from the node entirely.</p><p>The workflow is clean: create the secret, grant a service access to it, and the secret appears at a known path inside the container — decrypted, ready to use, and invisible to everything else on the host.</p><pre># Create a secret from a file or stdin<br>echo &quot;mysupersecretpassword&quot; | docker secret create db_password -<br># List secrets (only names are shown - values are never exposed)<br>docker secret ls<br># Grant a service access to the secret when deploying<br>docker service create \<br>  --name myapp \<br>  --secret db_password \<br>  mycompany/myapp:v1<br># Inside the container, the secret is available at:<br># /run/secrets/db_password<br># In-memory only - gone when the container stops</pre><h4>Swarm Security: Built-In, From the First Command</h4><p>If you run Docker in Swarm mode, you get a significant amount of security configured automatically the moment you run docker swarm init. No configuration required. No certificates to generate manually. Just one command — and Docker sets up cryptographic node IDs, mutual TLS between all nodes, an automatically rotating certificate authority with a 90-day rotation policy, secure join tokens for adding managers and workers, and an encrypted cluster store replicated across all managers.</p><p>The join tokens are worth understanding. Every Swarm maintains two — one for managers, one for workers. Each token embeds a hash of the cluster’s certificate, making it easy to detect if a token has been issued by a different cluster. If you ever suspect a token has been compromised, you can rotate it with a single command, and the existing nodes are completely unaffected:</p><pre># Rotate the manager join token — existing nodes unaffected<br>docker swarm join-token --rotate manager<br># View the certificate details for the current node<br>sudo openssl x509 \<br>  -in /var/lib/docker/swarm/certificates/swarm-node.crt \<br>  -text<br># Organization (O) = Swarm ID<br># Organizational Unit (OU) = node role (manager or worker)<br># Common Name (CN) = cryptographic node ID<br># Adjust the certificate rotation period (e.g. 30 days)<br>docker swarm update --cert-expiry 720h</pre><p>The cluster store — based on etcd — stores all Swarm configuration and state. It is automatically encrypted and replicated to every manager. This store also underpins overlay networks and Docker Secrets. In production, implement strong backup and recovery procedures for it — it is the source of truth for your entire cluster.</p><h3>Now You See It</h3><p>Something shifts when you understand a tool from the inside out. The commands you type carry meaning now — not just syntax. You know what the daemon is doing when you are not watching. You know why the layers exist, why containerd and runc are separate, why namespaces are what make isolation real. That kind of understanding does not come from reading a cheat sheet. You built it, piece by piece, from the ground up.</p><p>And here is what that actually means going forward — this does not just make you better at Docker. It makes you better at learning the next thing. Kubernetes will make sense faster. Service meshes, container runtimes, OCI specifications — all of it will click more quickly because you understand the foundations they are built on. Depth in one area accelerates everything adjacent to it.</p><p>So go back to a Dockerfile you wrote six months ago and read it differently. Look at a running container and think about what namespaces are keeping it isolated right now. You will see things you never noticed before — and that feeling is exactly what this article was written for. Keep going deeper. The questions get better, the understanding gets sharper, and the work gets more intentional. That path is yours.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bb027e6f9d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[12 Books. 12 Months. A Mind That Won’t Stop Asking Why.]]></title>
            <link>https://medium.com/@saitanmaiyee/12-books-12-months-a-mind-that-wont-stop-asking-why-0c4d5fe7353c?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c4d5fe7353c</guid>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[mindset]]></category>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 16:53:51 GMT</pubDate>
            <atom:updated>2026-03-14T16:53:51.271Z</atom:updated>
            <content:encoded><![CDATA[<p><em>On reading consistently, picking the right books, and how strangers on pages have quietly rewired the way I see everything.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*CivJq2z9HZisW8Dr.jpg" /></figure><p>I am not a fast reader. I am not a disciplined reader in the traditional sense either. I do not wake up at 5 AM with a reading quota to hit. What I am, deeply and restlessly, is <em>curious</em>. I want to know things. I want to understand how the world works, how people think, how they have lived, and what they have figured out. That curiosity is what made me read 12 books last year. Not a schedule. Not a goal written on a sticky note. Just the quiet need to keep knowing more.</p><p>Twelve books is not extraordinary. It is roughly one a month. And I want to be honest with you — it is not hard. Not if you pick the right books. Not if you read what you actually want to know at that moment in your life, not what you think you should be reading. The moment reading becomes a performance, you lose. The moment it becomes something you genuinely need, you cannot stop.</p><blockquote>“We do not know a lot of things. And it takes forever to know everything. But books give you a strange shortcut — not to knowing everything, but to knowing that so many people have lived so differently, thought so differently, and still somehow arrived at the same questions you are sitting with right now.”</blockquote><p>That, to me, is the whole point. Not to finish books. Not to stack them on a shelf. But to sit with a different mind for a few hours and come out slightly less sure of your own fixed views — which is a good thing. A very good thing.</p><p>Here is what I read in 2025, and the one thing that stayed with me from each.</p><h3>The 12 Books</h3><p>01 <strong>Shoe Dog — Phil Knight<br></strong>Memoir · Entrepreneurship</p><p>Phil Knight travelled the world when he was young and confused — and he did it right. He did not rush through tourist spots with a checklist. He lived in places. He sat in the markets, ate the food, talked to the people, absorbed the pace. That image of genuine immersion stuck with me. Travel as living, not as visiting. That is a completely different thing.</p><p>02 <strong>Elon Musk — Walter Isaacson<br></strong>Biography</p><p>You do not have to stay in one lane. You are allowed to be deeply curious across completely different domains — rockets, cars, energy, software — and let that cross-pollination become your edge. Most of us are taught to specialise and shrink. This book quietly argued the opposite.</p><p>03 <strong>November 9 — Colleen Hoover<br></strong>Fiction · Romance</p><p>Sometimes a book does not need to teach you something. Sometimes the most important thing you can do for a reading habit — and for your mind — is give it permission to rest and enjoy. Not every book needs to be heavy. This one was fun, and fun was exactly what I needed in that moment.</p><p>04 <strong>The Subtle Art of Not Giving a F*ck — Mark Manson<br></strong>Philosophy · Self-Help</p><p>The chapter on death quietly changed something in me. We either pretend we are not going to die, or we fear it so much it paralyses us. Neither is right. The healthier thing is to keep death close enough in your awareness that it informs how you live — without letting it haunt you. A quiet reminder sitting at the back of the room.</p><p>05 <strong>The 10X Rule — Grant Cardone<br></strong>Business · Mindset</p><p>Winning once is not the destination. It never was. The people who stay at the top do not coast after a win — they stay on the track, stay consistent, never take anything for granted. Complacency is quiet and it comes quickly. This book is a loud antidote to that.</p><p>06 <strong>Tuesdays with Morrie — Mitch Albom<br></strong>Memoir · Life &amp; Death</p><p>Do not run from your emotions. If you are sad, sit with it. Give yourself actual time to feel it — fully, honestly. But when that time is up, move on. Do not carry it for the rest of the day. Also: be proud of getting older. Ageing means you have lived. That reframe alone is worth the whole book.</p><p>07 <strong>The Kubernetes Book — Nigel Poulton<br></strong>Technical · DevSecOps</p><p>I work with Kubernetes every day. But there is a difference between using something and understanding it. Reading about the technology I work with — intentionally, in depth — changed how I approach problems at work. Technical books count. Understanding your craft deeply is never wasted.</p><p>08 <strong>The Alchemist — Paulo Coelho<br></strong>Fiction · Philosophy</p><p>Want something badly enough — not casually, not vaguely, but with everything you have — and the world reorganises itself around that want. Not magically, but practically: your attention sharpens, opportunities surface, you start doing what it takes. When you are truly ready and truly committed, things begin to move.</p><p>09 <strong>Docker Deep Dive — Nigel Poulton<br></strong>Technical · DevSecOps</p><p>Same spirit as Kubernetes — go deep on the tools you live with. Understanding Docker at the foundational level made me better at my job in ways that no tutorial or quick-fix article ever could. Depth matters. Curiosity applied to your craft is one of the most practical things you can do.</p><p>10 <strong>Heart Bones — Colleen Hoover<br></strong>Fiction · Romance</p><p>Again — balance. A reading life with only dense, heavy books becomes a chore. Fiction lets your mind exhale. Reading should feel like something you want to return to, not something you drag yourself toward. Light reads are not guilty pleasures. They are what keep the habit alive.</p><p>11 <strong>The Almanack of Naval Ravikant — Eric Jorgenson<br></strong>Philosophy · Mental Models</p><p>You do not have to finish every book. Read the parts that resonate and move on. Many books repeat the same idea for 200 pages — once you have caught the idea, you have got it. And the best books? Read them more than once, at different points in your life. They will say something completely different each time.</p><p>12 <strong>The Metamorphosis — Franz Kafka<br></strong>Classic Fiction · Existentialism</p><p>Strange, quiet, and unlike anything else on this list. The kind of book where you finish it and sit with it for a while. On how little control we have. On how absurd and indifferent life can be. On not taking everything so seriously. Some books teach you through ideas. This one teaches you through discomfort.</p><h3>On picking the right books</h3><p>The single most important thing I can tell you about reading consistently is this: pick books you actually want to read <em>right now</em>. Not the books that will make you look well-read. Not the ones everyone is talking about. The ones that match where you are in life, what you are trying to understand, what you are curious about in this exact moment.</p><p>When a book meets you at the right time, it does not feel like reading. It feels like a conversation you have been waiting to have. And when that happens, you do not need discipline or habit trackers. You just keep going back to it.</p><blockquote>“I learn things from the heart — that is when they truly stay with me. When I feel something from what I am reading, not just understand it, it becomes mine.”</blockquote><p>Twelve books across a year is one a month. Some months I read faster. Some months I barely touched a book. That is fine. Consistency does not mean identical every month. It means you keep returning. You keep the thread.</p><h3>What books actually do</h3><p>We do not know a lot of things. That is not a flaw — it is just the reality of being one person with one life and one set of experiences. But every book you read is someone else’s life, someone else’s thinking, someone else’s way of surviving or building or understanding the world. It is genuinely crazy, if you stop and think about it, how many different ways people have lived. How many different angles exist on the exact same question.</p><p>That is what books give me more than anything else. Not just information. Not just takeaways. But perspective. The humbling, motivating, expanding sense that there are a hundred ways to see anything — and I have only seen a few of them so far.</p><p>That is reason enough to keep reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c4d5fe7353c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One thing I learnt from ‘Subtle art of not giving a f’ by Mark Manson]]></title>
            <link>https://medium.com/@saitanmaiyee/my-lessons-from-subtle-art-of-not-giving-a-f-by-mark-manson-982d769b1be3?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/982d769b1be3</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[selfdevelopmnet]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Sat, 05 Jul 2025 16:19:49 GMT</pubDate>
            <atom:updated>2025-07-05T16:21:11.333Z</atom:updated>
            <content:encoded><![CDATA[<p>My lessons from ‘Subtle art of not giving a f’ by Mark Manson</p><p>I have read countless books and each of them taught me some or the other thing. I mostly take away one key primary lesson for each book and stick to it.</p><p>“Subtle art of not giving a f” shapes my thinking in so many ways even if it’s very little. But the main one? Here we go-</p><h3>Fewer the options, more the peace</h3><p>when you have too many options, picking any single thing from it will always cause us to be doubtful. we question our decision thinking, what if the other thing is better than what I picked. This leads to constant thinking, worrying and costing peace of mind.</p><p>That’s why it’s important to go for one thing after careful thought and STICK TO IT.</p><p>BE COMMITTED!</p><p>Your commitment will not only stop you from overthinking but it’ll give yourself that peace and satisfaction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=982d769b1be3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Truth about being consistent]]></title>
            <link>https://medium.com/@saitanmaiyee/truth-about-being-consistent-075c8a742dbc?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/075c8a742dbc</guid>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[consistency]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 05:16:16 GMT</pubDate>
            <atom:updated>2024-12-14T05:16:16.544Z</atom:updated>
            <content:encoded><![CDATA[<p>I have always struggled to be consistent with my studies, workout, and so many things.</p><p>Over the years I have realised 3 important and simple things to be consistent. And now I want to share with you how I succeeded in being consistent about anything in my life.</p><h4>Remember, always start slow and small.</h4><p>When you want to be consistent you have to show your body that it does not require a lot of energy and time, especially if you’re lazy like me.</p><p>The lesser the friction, the easier it is to continue and form a habit.</p><p>You can also try to trick your brain into thinking that you will only workout for 5 minutes. And as you start there are high chances that you will continue your workout.</p><h4>When you cannot, at least show up</h4><p>A lot of us think that when we workout, we have to do it an hour every single day.</p><p>No, it is not true. There will be days when you don’t feel like waking up and leaving for the gym.</p><p>What you can do is, show up. Show up to the gym. That’s it. If you do a little, just walk and come back. That’s an achievement too.</p><p>Remember, we are humans, we cannot be 100% perfect all the time. You have to be ok with being 20% some days, 50% some days. But you always have to be proud no matter what.</p><h4>Find your motivation</h4><p>This comes in the top of the list, but I have put it under because (I may have gotten too lazy to write it again).</p><p>Nobody in the world can withstand all the problems if there is no reason or motivation to. You need to find why you want to do what you want to do. That’s your motivation.</p><p>On days when you feel like not doing it, your why will remind you that there is no other choice.</p><p>Remember, to always go easy on yourself for skipping days. But make sure you don’t skip too much and you start feeling about it which can in turn create a negative energy around your habit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=075c8a742dbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you can’t achieve what you dream about]]></title>
            <link>https://medium.com/@saitanmaiyee/why-you-cant-achieve-what-you-dream-about-ee13e9d33887?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee13e9d33887</guid>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 05:02:05 GMT</pubDate>
            <atom:updated>2024-12-14T05:02:07.006Z</atom:updated>
            <content:encoded><![CDATA[<p>A lot of us don’t realise how little we know about ourselves and our future. Of course we cannot predict our future. We think we have total control over it, but little do we know that it’s not true.</p><p>Ever wondered, why you always change your dreams and goals as you grow. I wanted to be an astronaut when I was in school, an IAS officer later, then a scientist, and then an entrepreneur and now I want something else, something different.</p><p>We make decisions about our future right now, and plan our things. But remember, we are humans, we always change, our values change, our thoughts change, as a person we grow and change. This can affect our dreams, interests, and tastes.</p><p>Then what about people who say, dream big, aim high, have clarity in life. Yes. Yes, it is true. But you also have to keep room for error, space for some change. Aim high, pick your interest, work on it, become good, make it big. But always remember there’s always a reason it might not work the exact way you thought it to be.</p><p>Some way argue that, some people manifest what they want in their life. I will also add to it that as a person there will be things that do not change with time, money, problems, age.. anything. That’s why you are the way you are. So unique and yet familiar.</p><p>So, what I want to convey in this conversation is, understand your core values, what you are, what you like, and filter your goals. Then do a test case on them, try them for some days and see if you like them. Connect the dots, change your routes.</p><p>You’ll eventually find what you love doing. Doing what you love isn’t only about profession. It is not a singular noun. It is never about one thing.</p><p>It can take a while, but remember life is a journey not a destination.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee13e9d33887" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we start and don’t finish them]]></title>
            <link>https://medium.com/@saitanmaiyee/why-we-start-and-dont-finish-them-836bf61b5135?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/836bf61b5135</guid>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Wed, 08 May 2024 10:45:47 GMT</pubDate>
            <atom:updated>2024-05-08T10:45:47.124Z</atom:updated>
            <content:encoded><![CDATA[<p>I was always the kid who would skip deadlines, postpone work or worse, never complete them.</p><p>I realised this was actually a downside of me. I tend to start my work with utmost motivation and slowly begin to lose interest, which led to me giving up. I felt terrible, it was affecting my confidence and my self image.</p><p>That’s when I thought I can’t be like this anymore, I should do something about it. It’s when I learnt that motivation cannot drive me until the end, it’s the purpose. The purpose or the reason is what makes us walk in the toughest weather, it’s what makes us wake up early every single day, it’s what makes us do things even when we doubt ourselves.</p><p>Then, I started asking this question before I stepped into doing something “why do I want this?”. Pretty soon I started completing my work, gaining confidence. But you should also remember not to forget your purpose, because we tend to forget things in the long run.</p><p>Anyways, Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=836bf61b5135" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What you should learn as a Devops Engineer]]></title>
            <link>https://medium.com/@saitanmaiyee/things-i-have-learnt-as-a-devops-intern-ff38ff0ba61a?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff38ff0ba61a</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[database-administration]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 15:02:26 GMT</pubDate>
            <atom:updated>2024-04-26T04:10:40.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*NndLJduuLeg-09Xx3b73Xg.jpeg" /><figcaption>From Google</figcaption></figure><p>In this article I am going to list down things that I have come across while doing my internship as a Devops engineer.</p><h4>Administration section of databases</h4><p>I have covered administration parts of different databases and understood the underlying structure and concepts. These are the databases I have learnt about:</p><ul><li>Mongodb</li><li>Postgresql</li><li>Eventstore</li></ul><p>Now, the most important point is what is contained in the administration section?</p><p>Well, there are several things, but I am going to mention a few that are most important and quite common in the daily life of a devops engineer.</p><ul><li>Installation and Uninstallation</li><li>Knowing file paths of important files (such as long files, database files, config files, service files etc)</li><li>Managing data servers (start, stop, status commands)</li><li>Replication</li><li>Playing around with changing port numbers, file paths etc</li></ul><h4>Basic commands of Linux</h4><p>There are tons and tons of Linux commands and bundles of books to learn from. It gets really tricky if you are trying to learn linux commands as a beginner.</p><p>Instead of watching tons of tutorials, reading huge books, I will suggest you to learn Linux while playing games. Just search “learn linux through games”, you will get a list of games. Pick one and start learning while you enjoy.</p><p>Remember pareto’s principle, you can master 80% of linux commands by just learning about those 20% topics.</p><h4>Vim commands</h4><p>As a Devops engineer you need to work with Ubuntu operating systems, so obviously you will have to work with files, editing, saving, searching through tons of data in files.</p><p>This is where vim commands come into picture. And again, learn by playing games instead of watching those tutorials (I know a lot of people enjoy learning through videos, and reading books and that is completely fine).</p><p>Install “Vimtutor” and start learning!</p><h4>Basics of AWS</h4><p>AWS is pretty vast. It’ll take you months or even years to understand or master it. But there is always a start to everything, the BASICS!!</p><p>There are several websites, books, and youtube videos for helping you understand AWS. But my favourite of all is “Skillbuilder”. Start with Essentials of Cloud Practitioner and you will fall in love with AWS, I guarantee that!</p><p>There are a lot more topics and tools to cover such as Codebuild, kuberneetes, etc. Let me know if you guys want to learn more about any of the things I mentioned above.</p><p>Happy Learning ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff38ff0ba61a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Technique of “Grab and Note”]]></title>
            <link>https://medium.com/@saitanmaiyee/my-technique-of-grab-and-note-15fd11c0a32b?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/15fd11c0a32b</guid>
            <category><![CDATA[memories]]></category>
            <category><![CDATA[notetaking]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[study]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 13:22:45 GMT</pubDate>
            <atom:updated>2024-04-07T13:24:40.363Z</atom:updated>
            <content:encoded><![CDATA[<p>This is 21st century, we all carry our mobile phones everywhere, to our classrooms, work, park, even in our bathroom (LOL).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*kVH5lFNV3Qxp868K4PVCmA.jpeg" /><figcaption>Grab, Note, and Organize</figcaption></figure><p>As much as it is eating us away, we can also make use of it and improve our lifestyle. The most important thing, which I call is “Grab and Note”. This is a very simple technique to note down your ideas that flow off your mind, things you wanted to do, and so on..</p><p>How?<br>Let me explain.</p><blockquote>Whenever we remember something or get a brilliant idea that may not be useful right away, but we know it can be useful in future, we often forget it after a couple of minutes or days.<br>Our brain is not made for remembering stuff, it is made for thinking new ideas. When we use our brain for always remembering stuff, then we are not using its potential of thinking or creativity.</blockquote><p>Now, we want to get our brain to only think and spend less time in remembering, what can we do? Well, we can note down to shift brain’s energy to be free to think and create.</p><p><strong>This is where our technique comes in. Whatever comes to mind, grab your book that you carry all the the time or grab your phone and note it down. Be it anything that you want to remember. Grab it and note it down before you forget. <br>Now, after you note it, make some time to review your notes and organize it. We don’t want out notes to pile up and be messy. We want it to help us. Create topics and put those notes into those topics and refer or use it whenever.</strong></p><p>Here you go, You won’t miss anything from now! Happy learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15fd11c0a32b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I remember everything I want to do]]></title>
            <link>https://medium.com/@saitanmaiyee/how-i-remember-everything-i-want-to-do-45dffe03d1ba?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/45dffe03d1ba</guid>
            <category><![CDATA[to-do-list]]></category>
            <category><![CDATA[studying]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 13:05:31 GMT</pubDate>
            <atom:updated>2024-04-07T13:05:31.284Z</atom:updated>
            <content:encoded><![CDATA[<p>For a lot of you, creating a to-do list every morning might work. Some of you like using a notebook, some like the flexibility of using a phone and some of you don’t even use one but still manage it out somehow.</p><p>Well, this post will focus on the importance of having a place to keep all your stuff at one place and I will also share various things I have tried on this journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*Jhme7e_GhEylegs2-vYzLg.jpeg" /></figure><p><strong>Starting from a NOTEBOOK!</strong><br>Most of you like the feel of writing down on a notebook and striking down each task after completion. Well, I used this technique for a couple of days and it really did not suit my lifetsyle. I could not carry my notebook and pen all the time, so it was a struggle for me.</p><p><strong>Digital Notes!!</strong><br>It was then I shifted to digital technology. I used various apps and here are some I really loved and you should try!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*tsoB1akRgz9A250tueR3fw.jpeg" /><figcaption>Notion</figcaption></figure><ol><li><strong>Notion</strong><br>I used notion for the longest time, and I still do. It is one of my favourite note taking app and other various things. It is very convenient, easy to use, neat, powerful tool to save all your notes at one place. But there are times when I wanted a complete separate app for just my to-do list without being disturbed my all other things present in it. This can be both used as a web application or an app. I personally prefer web based of this.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*nkI2mQumpk0AaPnrQh_24w.jpeg" /><figcaption>TeuxDeux</figcaption></figure><p>2. <strong>TeuxDeux</strong><br>This is my favourite app and you all should definitely try. This app literally is so comfortable to use. You can add new tasks for the day by simple clicking on the + button, and when you are done, you can just click on it to strike it off. You can also edit your task with just a swipe. One important feature I loved is that you can move your tasks to tomorrow or any other date! I really like the simplicity of the user interface. You can use your mobile app or open it on your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*78PWsdiGC9MfVRAqTFYe2w.jpeg" /><figcaption>Notes app</figcaption></figure><p>3. <strong>Notes app</strong><br>Most of you also use your personal notes app which is good of course. But if you are someone like me who needs to keep our to-do lists separately and have the flexibility to move them around in different dates, then you should definitely try TeuxDeux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*0KhZeSwP9IPC68wH17soJw.jpeg" /><figcaption>Evernote</figcaption></figure><p>4. <strong>Evernote</strong><br>This app is similar to notion and has a lot of features, but this is not free. You are charged and have to pay subscription if you want to use it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45dffe03d1ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start before]]></title>
            <link>https://medium.com/@saitanmaiyee/start-before-780a77a44038?source=rss-cea44fadf648------2</link>
            <guid isPermaLink="false">https://medium.com/p/780a77a44038</guid>
            <dc:creator><![CDATA[Sai Tanmaiyee]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 01:16:27 GMT</pubDate>
            <atom:updated>2023-10-23T01:16:27.620Z</atom:updated>
            <content:encoded><![CDATA[<h4>Yes, “Start before” than to cramp up all the work on the last day.</h4><p>Typically, I would do my projects, assignments, exam preparations on the last day and suffer from the pressure and stress. I know a lot of people disagree, but here’s the case —</p><p>Doing things on the last day might give you tremendous motivation to complete but what we don’t think is the ability to refine yourselves and remember things for a really long time due to the revisions that we will be able to do. You can learn a lot if you start before.</p><p>Another thing to note is that, our work expands to the time that we give it. So instead of doing your work for days and days and days, divide your work and start putting deadlines.</p><p>Also, don’t forget to take breaks in between. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=780a77a44038" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>