1. minikube image ls

查看镜像列表

minikube image ls [flags]

1.1. 别名

[list]

minikube image lsminikube image list 等价

1.2. Options

      --format string   Format output. One of: short|table|json|yaml (default "short")

1.3. 从父命令继承的选项

      --add_dir_header                   If true, adds the file directory to the header of the log messages
      --alsologtostderr                  log to standard error as well as files
  -b, --bootstrapper string              The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
  -h, --help                             
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log_dir string                   If non-empty, write log files in this directory
      --log_file string                  If non-empty, use this log file
      --log_file_max_size uint           Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
      --logtostderr                      log to standard error instead of files
      --one_output                       If true, only write logs to their native severity level (vs also writing to each lower severity level)
  -p, --profile string                   The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
      --skip_headers                     If true, avoid header prefixes in the log messages
      --skip_log_headers                 If true, avoid headers when opening log files
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
      --user string                      Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
  -v, --v Level                          number for the log level verbosity
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging

1.4. 示例

1.4.1. 查看 minikube 中的镜像列表

[minikube@localhost  ~]$ minikube image ls
registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner:v5
registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.5
registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper:v1.0.7
registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard:v2.3.1
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.22.3
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.22.3
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.22.3
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.22.3
registry.cn-hangzhou.aliyuncs.com/google_containers/kindnetd:v20210326-1e038dc5
registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5
registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.5.0-0
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.4
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns:v1.8.4
registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.5
registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper:<none>
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.22.3
registry.cn-hangzhou.aliyuncs.com/google_containers/kindnetd:v20210326-1e038dc5
registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard:<none>

这里查看的镜像列表和登录到 minikube 中使用 docker images 查看的镜像列表是一致的

[minikube@localhost ~]$ minikube ssh
docker@k8s2:~$ docker images
REPOSITORY                                                                             TAG                  IMAGE ID       CREATED         SIZE
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver                     v1.22.3              53224b502ea4   7 months ago    128MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler                     v1.22.3              0aa9c7e31d30   7 months ago    52.7MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager            v1.22.3              05c905cef780   7 months ago    122MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy                         v1.22.3              6120bd723dce   7 months ago    104MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard             v2.3.1               e1482a24335a   12 months ago   220MB
registry.cn-hangzhou.aliyuncs.com/google_containers/etcd                               3.5.0-0              004811815584   12 months ago   295MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper       v1.0.7               7801cfc6d5c0   12 months ago   34.4MB
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns                    v1.8.4               8d147537fb7d   12 months ago   47.6MB
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns                            v1.8.4               8d147537fb7d   12 months ago   47.6MB
registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner                v5                   6e38f40d628d   14 months ago   31.5MB
registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner   v5                   6e38f40d628d   14 months ago   31.5MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kindnetd                           v20210326-1e038dc5   6de166512aa2   15 months ago   118MB
registry.cn-hangzhou.aliyuncs.com/google_containers/pause                              3.5                  ed210e3e4a5b   15 months ago   683kB
docker@k8s2:~$
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2022-06-21 23:19:48

results matching ""

    No results matching ""