minikube 导入本地 Docker 镜像

minikube Docker About 902 words

需求

本地机器Docker Desktop中的镜像与minikube中的Docker镜像不共用,需要将本地Docker Desktop中已经存在的镜像导入到minikubeDocker中。

相关命令

minikube image load

查看帮助

PS C:\> minikube image load -h
Load a image into minikube

Examples:
minikube image load imageName
minikube image load imageName.tar

Options:
      --daemon=false: Cache image from docker daemon
      --overwrite=true: Overwrite image even if same image:tag name exists
      --pull=false: Pull the remote image (no caching)
      --remote=false: Cache image from remote registry

Usage:
  minikube image load IMAGE | ARCHIVE | - [flags] [options]

上传本地 Docker 镜像到 minikube Docker

本地Docker中已经下载了istio/distroless:latest镜像

minikube image load istio/distroless

上传到minikube中的Docker后名称变为:

docker.io/istio/distroless:latest

上传本地 tar 镜像到 minikube Docker

从本地Dockersave一份

docker save -o distroless.tar istio/distroless:latest

上传到minikubeDocker

minikube image load distroless.tar
Views: 2,260 · Posted: 2022-11-20

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh