sudo -E minikube image build
breaks users ability to use docker build
on none driver
#16393
Labels
area/image
Issues/PRs related to the minikube image subcommand
co/none-driver
co/runtime/docker
Issues specific to a docker runtime
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Related #16386
The issue I'm running into is with Docker 23, they're deprecating the legacy builder builtin to Docker and want you to also install
docker-buildx-plugin
.After implementing #16386, I'm running into a problem when I'm running
sudo -E minikube image build
as the buildx-plugin creates the file/home/<user>/.docker/buildx/activity/default
after a build, but because ofsudo -E
it hasroot:root
permissions. Then if I try to do a normaldocker build
after running the above it fails withERROR: open /home/<user>/.docker/buildx/activity/default: permission denied
.So after running
sudo -E minikube image build
it essentially breaks the users ability to usedocker build
unless they change the permissions of/home/<user>/.docker/buildx/activity/default
off ofroot:root
.The text was updated successfully, but these errors were encountered: