<?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 Pkumarstek on Medium]]></title>
        <description><![CDATA[Stories by Pkumarstek on Medium]]></description>
        <link>https://medium.com/@pkumarstek?source=rss-26cac0fe47ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aKtWBgrrmOoaBHS_</url>
            <title>Stories by Pkumarstek on Medium</title>
            <link>https://medium.com/@pkumarstek?source=rss-26cac0fe47ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 13:58:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pkumarstek/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[Use Docker on Windows with Hyper-V Without Docker Desktop License]]></title>
            <link>https://medium.com/@pkumarstek/use-docker-on-windows-with-hyper-v-without-docker-desktop-license-0dda57300523?source=rss-26cac0fe47ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/0dda57300523</guid>
            <dc:creator><![CDATA[Pkumarstek]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 05:44:26 GMT</pubDate>
            <atom:updated>2025-02-17T09:33:01.374Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker is a powerful platform for developing, shipping, and running applications in containers. For Windows users who want to use Docker without a Docker Desktop license, you can leverage <strong>Hyper-V</strong>, the native hypervisor in Windows, to run Windows or Linux-based containers. This guide provides a comprehensive step-by-step approach to enabling Hyper-V and configuring Docker manually.</p><p><strong>1. Enable Hyper-V</strong></p><p>Hyper-V is a native hypervisor in Windows that allows you to create and manage virtual machines. Docker utilizes Hyper-V to run Linux-based containers on Windows.</p><p><strong>Steps to Enable Hyper-V:</strong></p><ol><li>Open <strong>PowerShell</strong> as an <strong>Administrator</strong>.</li><li>Run the following command to enable Hyper-V:</li></ol><p><strong>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All</strong></p><ol><li>Restart your computer when prompted.</li></ol><p><strong>2. Setting Up Docker Daemon as a Windows Service</strong></p><p>By setting up Docker as a Windows service, you can automate its startup and ensure consistent operation.</p><p><strong>Step 1: Download Docker Binary</strong></p><p>Start by downloading the Docker static binaries for Windows:</p><p>👉 <a href="https://download.docker.com/win/static/stable/x86_64/">Download Docker Binary</a></p><p>After downloading, extract the contents to a suitable location, e.g., C:\docker.</p><p><strong>Step 2: Configure Environment Variables</strong></p><p>Ensure the following system environment variables are properly set:</p><ol><li><strong>Path:</strong> Add C:\docker\ to the system PATH.</li><li><strong>DOCKER_DEFAULT_ISOLATION:</strong> Set the value to hyperv.</li></ol><p><strong>Step 3: Start Docker Daemon Manually</strong></p><p>To manually start the Docker daemon from the command line, follow these steps:</p><ol><li>Open <strong>Command Prompt</strong> in <strong>Administrator mode</strong>.</li><li>Execute the following command to start the Docker daemon and listen on port 2376:</li></ol><p><strong>dockerd -H tcp://localhost:2376</strong></p><p><strong>Step 4: Create Docker Daemon as a Windows Service</strong></p><p>To automate Docker startup, register it as a Windows service:</p><ol><li>Ensure you have <strong>administrative privileges</strong>.</li><li>Use the sc command to create the service on command prompt:</li></ol><p><strong>sc create Docker binPath= “c:\docker\dockerd.exe — run-service -H tcp://localhost:2376”</strong></p><p><strong>Step 5: Start and Manage Docker Service</strong></p><ul><li><strong>Start the Docker Service:</strong></li></ul><p>sc start Docker</p><ul><li><strong>Check Docker Service Status:</strong></li></ul><p>sc QC Docker</p><p><strong>3. Building and Running Docker Containers</strong></p><p>Once Docker is up and running, you can start building and running containers to deploy your applications.</p><p><strong>Build a Docker Image</strong></p><p>Navigate to the directory containing your Dockerfile and build an image:</p><p><strong>docker build -t applicationImageName</strong> .</p><p>To view all Docker images on your system:</p><p>docker images</p><p><strong>Run a Docker Container</strong></p><p>Run the Docker container and map port 8000 on your local system to port 80 inside the container:</p><p><strong>docker run -it — rm -p 8000:80 — name [Container_Name] applicationImageName</strong></p><p><strong>Access a Running local Docker Container via Visual Studio Code:</strong></p><p>To interact with a running container via Visual Studio Code, download docker by microsoft extension and install it. After installing you will see docker icon visible on the left pain and you will on all the docker image and running container on the left pain.</p><p><strong>4. Summary</strong></p><p>By following this guide, you have:</p><ul><li>Enabled <strong>Hyper-V</strong> for Docker on Windows.</li><li>Manually set up the <strong>Docker daemon</strong> and registered it as a <strong>Windows service</strong>.</li><li>Built and run Docker containers without relying on <strong>Docker Desktop</strong>.</li></ul><p>This approach provides a robust way to leverage Docker on Windows while maintaining control over your environment and avoiding Docker Desktop licensing requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0dda57300523" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>