sudo: eval: command not found

7/18/2019

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

This gives me an error:

sudo: eval: command not found

Any guidance or solution for this? I am running this on MacOS Mojave.

-- PRERNA AGARWAL
docker
kubernetes
macos-mojave
minikube

1 Answer

7/18/2019

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

shubuntu1@shubuntu1:~/777$ sudo eval
sudo: eval: command not found
shubuntu1@shubuntu1:~/777$ sudo -s eval
shubuntu1@shubuntu1:~/777$
  • If you want to execute with root account:

    $ sudo -s -H
    $ eval $(minikube docker-env)
  • If you just intend to execute with current account:

    $ eval $(minikube docker-env)
-- atline
Source: StackOverflow