-
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" doesn't respect registry-creds #16033
Comments
Listing expectations on the Normally the images aren't pushed anywhere (just saved/loaded), so no credentials are needed... Alternatively the localhost:5000 hack is used for the insecure cluster registry, again no credentials. I think as long as the files are on the VM (or KIC), it should be picked up by the container runtime ? |
This isn't actually relevant to push, but just kicking off a build with I did originally intend to just load the image, but ran into a separate issue (#16032 as it happens), but since I ended up resorting to |
Having a local registry (as you say, the localhost:5000 hack) is an extra complication that is arguably even harder to explain to relative newcomers than |
I meant the config files with the "docker" credentials:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "base64(username:password)"
}
}
} A workaround is to set them up with ssh, as you say And then docker/podman/buildctl will read that file. |
It would be nice if this could be done in an agnostic way, currently I think most local tools (docker, podman, nerdctl) just fall back to writing I guess we do it the usual way, and just remove the D-word but keep the legacy interface. The current docker-flags (opt, env) were supposed to have generic "runtime" aliases
Runtime flags,
Buildtime flags,
|
@holograph : I think that if you use That is, crane will pull the image from the registry with the default credentials and save it in the cache.
|
This was the idea behind But people are very set in their ways, so I think we will be stuck with the legacy |
@afbjorklund Unfortunately As for |
The main problem with And since the legacy TCP API is no longer recommended or even supported, there's all the fun of SSH connections... |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues 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. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What Happened?
The builds kicked off by the
minikube image build
don't respect the registry credentials input via the registry-creds add-on recommended in the documentation. This can be a problem if e.g. the build is based off of a base image that's on a private registry.In fact, unless I'm missing something, there doesn't seem to be any way to provide credentials without resorting to injecting them via
docker login
(either viadocker-env
or SSH), and no way to parameterize the build container (e.g. with imagePullSecrets)? I'd be happy to lend a hand in testing or even implementing this, but this is a brand new code base (to me) in an unfamiliar language, so not promising anything...(all of this of applies to the Docker driver in both Windows and MacOS)
Attach the log file
No relevant logs
Operating System
macOS (Default)
Driver
Docker
The text was updated successfully, but these errors were encountered: