minikube: Unable to build minikube ISO locally
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Environment: Fedora 25 (Linux)
Docker version 1.12.6
What happened: I am unable to generate minikube ISO with instruction here https://github.com/kubernetes/minikube/blob/master/docs/contributors/minikube_iso.md#build-instructions.
Getting permission error: Getting following error:
$ make buildroot-image
docker build -t gcr.io/k8s-minikube/buildroot-image -f deploy/iso/minikube-iso/Dockerfile deploy/iso/minikube-iso/
Sending build context to Docker daemon 114.2 kB
Step 1 : FROM ubuntu:16.04
---> ccc7a11d65b1
[...]
Successfully built 7d9ff5ca90dc
gcr.io/k8s-minikube/buildroot-image successfully built
$ make out/minikube.iso
docker run --rm --workdir /mnt --volume /home/budhram/gowork/src/github.com/kubernetes/minikube:/mnt \
--user 1001:1001 --env HOME=/tmp --env IN_DOCKER=1 \
gcr.io/k8s-minikube/buildroot-image /usr/bin/make out/minikube.iso
make: stat: Makefile: Permission denied
make: *** No rule to make target 'out/minikube.iso'. Stop.
Makefile:125: recipe for target 'out/minikube.iso' failed
make: *** [out/minikube.iso] Error 2
# Checking inside container
$ docker run --rm --workdir /mnt --volume /home/budhram/gowork/src/github.com/kubernetes/minikube:/mnt \
> --user 1001:1001 --env HOME=/tmp --env IN_DOCKER=1 \
> -it gcr.io/k8s-minikube/buildroot-image bash
groups: cannot find name for group ID 1001
I have no name!@38b0831a053f:/mnt$ ls
ls: cannot open directory '.': Permission denied
I doubt the volume mount didn’t happen properly.
What you expected to happen:
minikube ISO should be generated at out/minikube.iso.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (13 by maintainers)
@gbraad , please go ahead as well. I am still getting issue with Fedora 25 so I am now trying with Ubuntu VM and now with GCE Ubuntu instance where I was able to create iso. Locally with Ubuntu VM, I am having some issue during
make out/minikube.isoafter 1hrs+ running.Just tested this @ HEAD, unable to repro, it is also working on my Ubuntu 14.04 machine. I will test on a Fedora 25 machine and see if I am able to repro. Not quite sure what the issue is but I believe that it is related to the ‘–user’ flag as r2d4 mentioned: https://github.com/kubernetes/minikube/blob/master/Makefile#L62-L63