<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://cloudkahani.in/blog</id>
    <title>CloudKahani Blog</title>
    <updated>2026-06-02T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://cloudkahani.in/blog"/>
    <subtitle>CloudKahani Blog</subtitle>
    <icon>https://cloudkahani.in/img/favicon.ico</icon>
    <entry>
        <title type="html"><![CDATA[Minikube Startup Issue - Container Not Running After VM Restart]]></title>
        <id>https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue</id>
        <link href="https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue"/>
        <updated>2026-06-02T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Troubleshooting guide for resolving Minikube cluster not running after VM restart]]></summary>
        <content type="html"><![CDATA[<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="problem">Problem<a href="https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue#problem" class="hash-link" aria-label="Direct link to Problem" title="Direct link to Problem" translate="no">​</a></h2>
<p>After installing Minikube on an Ubuntu VirtualBox VM and working for some time, I shut down the VM. When I restarted the VM later, I discovered that Minikube was not running.</p>
<!-- -->
<p>Running <code>minikube status</code> showed:</p>
<pre style="background-color:#1e1e1e;padding:12px;border-radius:5px;border:1px solid #444;font-family:monospace;overflow:auto;font-size:0.95em;line-height:1.5;color:#c0c0c0;margin:0 0 1.5em 0;white-space:pre-wrap;word-wrap:break-word"><p>vagrant@vagrant:~$ minikube status
minikube
type: Control Plane
host: Stopped
kubelet: Stopped
apiserver: Stopped
kubeconfig: Stopped</p></pre>
<p>I checked the Docker containers and found that the Minikube Docker container was not running:</p>
<pre style="background-color:#1e1e1e;padding:12px;border-radius:5px;border:1px solid #444;font-family:monospace;overflow:auto;font-size:0.95em;line-height:1.5;color:#c0c0c0;margin:0 0 1.5em 0;white-space:pre-wrap;word-wrap:break-word"><p>vagrant@vagrant:~$ docker ps -a
CONTAINER ID   IMAGE                                 COMMAND                  CREATED        STATUS                            PORTS                                                                                                                                  NAMES
62d8b2305e2c   gcr.io/k8s-minikube/kicbase<!-- -->:v0<!-- -->.0.50   "/usr/local/bin/entr…"   28 hours ago   Exited (255) About a minute ago   127.0.0.1:32768-&gt;22/tcp, 127.0.0.1:32769-&gt;2376/tcp, 127.0.0.1:32770-&gt;5000/tcp, 127.0.0.1:32771-&gt;8443/tcp, 127.0.0.1:32772-&gt;32443/tcp   minikube</p></pre>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="initial-troubleshooting-attempt">Initial Troubleshooting Attempt<a href="https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue#initial-troubleshooting-attempt" class="hash-link" aria-label="Direct link to Initial Troubleshooting Attempt" title="Direct link to Initial Troubleshooting Attempt" translate="no">​</a></h2>
<p>I attempted to start the Docker container manually:</p>
<pre style="background-color:#1e1e1e;padding:12px;border-radius:5px;border:1px solid #444;font-family:monospace;overflow:auto;font-size:0.95em;line-height:1.5;color:#c0c0c0;margin:0 0 1.5em 0;white-space:pre-wrap;word-wrap:break-word"><p>vagrant@vagrant:~$ docker start 62d8b
62d8b</p></pre>
<p>However, after starting the Docker container, running <code>minikube status</code> still showed issues:</p>
<pre style="background-color:#1e1e1e;padding:12px;border-radius:5px;border:1px solid #444;font-family:monospace;overflow:auto;font-size:0.95em;line-height:1.5;color:#c0c0c0;margin:0 0 1.5em 0;white-space:pre-wrap;word-wrap:break-word"><p>vagrant@vagrant:~$ minikube status
minikube
type: Control Plane
host: Running
kubelet: Stopped
apiserver: Stopped
kubeconfig: Configured</p></pre>
<p>The host was running, but the kubelet and apiserver were still in a stopped state. This indicated that simply starting the Docker container was not the correct approach.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="solution">Solution<a href="https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue#solution" class="hash-link" aria-label="Direct link to Solution" title="Direct link to Solution" translate="no">​</a></h2>
<p>The correct way to start Minikube after a VM restart is to use the <code>minikube start</code> command:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">minikube start</span><br></div></code></pre></div></div>
<p>This command properly initializes and starts all Minikube cluster components (kubelet, apiserver, etc.). After running this, <code>minikube status</code> should show all components as running:</p>
<pre style="background-color:#1e1e1e;padding:12px;border-radius:5px;border:1px solid #444;font-family:monospace;overflow:auto;font-size:0.95em;line-height:1.5;color:#c0c0c0;margin:0 0 1.5em 0;white-space:pre-wrap;word-wrap:break-word"><p>minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured</p></pre>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="best-practices">Best Practices<a href="https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue#best-practices" class="hash-link" aria-label="Direct link to Best Practices" title="Direct link to Best Practices" translate="no">​</a></h2>
<p>To avoid this issue in the future, follow these practices:</p>
<ol>
<li class="">
<p><strong>Always use <code>minikube stop</code> before powering off your VM:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">minikube stop</span><br></div></code></pre></div></div>
<p>This gracefully shuts down the cluster and ensures proper state management.</p>
</li>
<li class="">
<p><strong>Use <code>minikube start</code> after powering on your VM:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">minikube start</span><br></div></code></pre></div></div>
<p>This properly restarts all cluster components.</p>
</li>
<li class="">
<p><strong>Avoid manually starting Docker containers:</strong>
Don't try to directly manage Minikube's Docker containers. Let Minikube handle its own lifecycle management through its CLI commands.</p>
</li>
</ol>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="key-takeaway">Key Takeaway<a href="https://cloudkahani.in/blog/2026/06/02/minikube-startup-issue#key-takeaway" class="hash-link" aria-label="Direct link to Key Takeaway" title="Direct link to Key Takeaway" translate="no">​</a></h2>
<p><em>Remember:</em> Use Minikube's native commands (<code>minikube start</code> and <code>minikube stop</code>) rather than directly managing Docker containers. This ensures all cluster components start and stop correctly, preventing inconsistent states like having a running host but stopped kubelet and apiserver.</p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>Given limited infrastructure (running Minikube in a VM on Windows with limited resources), these manual start/stop procedures are occasionally necessary, but following the best practices above minimizes operational overhead.</p></div></div>]]></content>
        <author>
            <name>Sarat Kota</name>
            <uri>https://linkedin.com/in/saratkota</uri>
        </author>
        <category label="Minikube" term="Minikube"/>
        <category label="Troubleshooting" term="Troubleshooting"/>
        <category label="Kubernetes" term="Kubernetes"/>
        <category label="Docker" term="Docker"/>
    </entry>
</feed>