Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker DevOps


minikube 挂载本地磁盘到内置虚拟机中

minikube 大约 1237 字

minikube mount

使用minikube mount命令将本地机器中的文件夹挂载到minikube虚拟机中(不是KubernetesPod中)。

查看帮助

9pPlan 9 system

PS C:\> minikube mount -h
将指定的目录挂载到 minikube。

Options:
      --9p-version='9p2000.L': Specify the 9p version that the mount should use
      --gid='docker': 用于挂载默认的 group id
      --ip='': Specify the ip that the mount should be setup on
      --kill=false: Kill the mount process spawned by minikube start
      --msize=262144: The number of bytes to use for 9p packet payload
      --options=[]: 其他挂载选项,例如:cache=fscache
      --port=0: Specify the port that the mount should be setup on, where 0 means any free port.
      --type='9p': Specify the mount filesystem type (supported types: 9p)
      --uid='docker': 用于挂载默认的 user id

Usage:
  minikube mount [flags] <source directory>:<target directory> [options]

示例

PS C:\Users\thunk\Desktop> minikube mount D:\testdir:/host/testdir
📁  Mounting host path D:\testdir into VM as /host/testdir ...
    ▪ Mount type:
    ▪ 用户 ID:      docker
    ▪ Group ID:     docker
    ▪ 版本:      9p2000.L
    ▪ Message Size: 262144
    ▪ Options:      map[]
    ▪ 绑定地址:172.18.224.1:53397
🚀  Userspace file server: ufs starting

官方文档

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

阅读 27 · 发布于 2022-11-21

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

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

扫描二维码关注我
昵称:
随便看看 换一批