You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Images is not pushed to registry when used minikube k8s context and useCli (args, useBuildKit too) options for Docker builder engine. When DevSpace deployed the container, Pod/Deployment/etc resource can't be created, because the image was not pushed to registry.
The option preferMinikube don't help with the issue.
What did you expect to happen instead?
Images should be pushed to registry when used a local Docker builder (with or without BuildKit) with local cluster.
How can we reproduce the bug?
Set useBuildKit option.
Use a local cluster (for example minikube) for deploying.
I believe I see the same issue with my local minikube development -- I'm trying to enable BuildKit for improving build times while also enabling preferMinikube so that images do not need to be pushed to a registry because Kubernetes can simply use the images available in the Docker daemon belonging to the kubelet of the local cluster:
But these seem to be incompatible because when {useBuildKit: true} then it seems it forces {useCli: true} and uses my local docker to build/store the images rather than the docker daemon in minikube, and all the pods in minikube will fail with image pull errors since the images stored locally aren't available to minikube's docker daemon. I even tried forcing {useCli: false} along with the above build config but it did not seem to respect it since useBuildKit is true.
@saruman9 thanks for opening this issue! Yes, internally we just call the docker cli with DOCKER_BUILDKIT=1 which targets always the local docker. I guess we can change that by calling minikube docker-env beforehand to change the target docker daemon to the minikube one.
What happened?
Images is not pushed to registry when used minikube k8s context and
useCli
(args
,useBuildKit
too) options for Docker builder engine. When DevSpace deployed the container, Pod/Deployment/etc resource can't be created, because the image was not pushed to registry.The option
preferMinikube
don't help with the issue.What did you expect to happen instead?
Images should be pushed to registry when used a local Docker builder (with or without BuildKit) with local cluster.
How can we reproduce the bug?
useBuildKit
option.Local Environment:
Kubernetes Cluster:
/kind bug
The text was updated successfully, but these errors were encountered: