<p>I have installed minikube on my system and <code>minikube start</code> works as expected for me. When I want to use local docker images and hence trying to run sudo <code>eval $(minikube docker-env)</code>. </p>

<p>This gives me an error: </p>

<blockquote>
  <p>sudo: eval: command not found</p>
</blockquote>

<p>Any guidance or solution for this? I am running this on MacOS Mojave.</p>

PRERNA AGARWAL
<p>You use <code>sudo eval $(minikube docker-env)</code>, <code>sudo: eval: command not found</code> this means <code>eval</code> not found. <code>eval</code> is an built-in in shell, so when <code>sudo</code> without <code>-s</code> it will surely tell you this error, like next:</p>

<pre><code>shubuntu1@shubuntu1:~/777$ sudo eval
sudo: eval: command not found
shubuntu1@shubuntu1:~/777$ sudo -s eval
shubuntu1@shubuntu1:~/777$
</code></pre>

<ul>
<li><p>If you want to execute with root account:</p>

<pre><code>$ sudo -s -H
$ eval $(minikube docker-env)
</code></pre></li>
<li><p>If you just intend to execute with current account:</p>

<pre><code>$ eval $(minikube docker-env)
</code></pre></li>
</ul>
