-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minikube image build returning 'permission denied error' for linux(debian-rodete) + kvm & docker vm-drivers #12559
Comments
@sharifelgamal this is the issue I referenced in my chat w/ you |
Does the Dockerfile have some mode restrictions like 640 ? Can you list the files |
Yes, it has
Changing the file perms to |
Does |
I'm not sure in what context/where you are referring to the files permissions. |
No worries, I can look into it myself. The
|
Indeed, they replace the user and assume that it is "root" that is reading the archive. buildCtx, err = archive.TarWithOptions(contextDir, &archive.TarOptions{
ExcludePatterns: excludes,
ChownOpts: &idtools.Identity{UID: 0, GID: 0},
}) |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
There seems to be an easy workaround for this thankfully, but the UX is less than ideal, so I'll leave this open. |
In attempting to use the
minikube image build
command on a local dockerfile I am seeing the following:This is the dockerfile I am trying to build (from skaffold/examples/microservices/base/Dockerfile):
os: linux (debian-rodete)
minikube_version: v1.23.2
full logs running
minikube image build --alsologtostderr .
withkvm2
driver:https://gist.github.com/aaron-prindle/3b15b9082ad8b5994e56e722f78a9cd6
full logs running
minikube image build --alsologtostderr .
withdocker
driver:https://gist.github.com/aaron-prindle/d62d5c3d8a64f2e04216d427eeffab89
This occurs for me when using using both docker and KVM virtualization (
--vm-driver=docker
&--vm-driver=kvm2
)NOTE: My linux user id is in both
kvm
andlibvirt
groups and the kvm2 driver is working properly:Any idea why I might be seeing this permission denied issue? Am I perhaps using
minikube image build .
incorrectly with my current env/vm-driver setup? I can see the directory referenced in thepermission denied error
-/var/lib/minikube/build/build.87560460/Dockerfile
in the minikube vm (below output from--vm-driver=kvm2
) but not theDockerfile
:The text was updated successfully, but these errors were encountered: