Whilst helping out a friend, I was running through a process to get Docker running without Docker Desktop, as per this: -
which makes heavy use of Homebrew.
This has one install stuff such as hyperkit and minikube : -
brew install hyperkit
brew install minikube
which is nice.
However, I was seeing interesting results from Homebrew in general ...
As an example when I ran brew upgrade or brew install hyperkit I was seeing errors such as: -
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
==> Pouring kubernetes-cli--1.22.1.big_sur.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/kubectl
already exists. You may want to remove it:
This on macOS 11.6 on my good ole 2014 Mac mini ...
The solution was relatively simple ...
At some point in the past, I'd had Docker Desktop installed, which was obviously running as root via sudo etc.
Therefore, having removed Docker Desktop, I needed to clean up the permissions : -
sudo chown -R davidhay:admin /usr/local/lib