minikube 挂载本地磁盘到内置虚拟机中
minikube About 1,237 wordsminikube mount
使用minikube mount
命令将本地机器中的文件夹挂载到minikube
虚拟机中(不是Kubernetes
的Pod
中)。
查看帮助
9p
:Plan 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
官方文档
Views: 1,959 · Posted: 2022-11-21
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...