GoogleContainerTools/skaffold

Load images into minikube rather than replacing host's docker env

開放

#4,654 建立於 2020年8月12日

 (2 則留言) (1 個反應) (0 位負責人)Go (1,416 個分叉)batch import
area/buildhelp wantedkind/feature-requestplatform/minikubepriority/p2

倉庫指標

星標
 (12,822 顆星)
PR 合併指標
 (平均合併 3天 6小時) (30 天內合併 16 個 PR)

描述

currently in skaffold, if we detect a user has minikube as their active kubecontext, we run a minikube docker-env so that docker commands on the host machine build to minikube's docker daemon. this can cause issues if we're only trying to run a skaffold build while minikube is stopped - something that should be possible, but skaffold can't get around because it only knows to try and use minikube's docker daemon.

instead, we could use minikube cache add on images that are built locally, and do this on push, so builds will still work even when minikube's docker daemon is not accessible.

https://minikube.sigs.k8s.io/docs/handbook/pushing

貢獻者指南