minikube 挂载本地磁盘到内置虚拟机中
minikube 大约 1237 字minikube 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
官方文档
阅读 339 · 发布于 2022-11-21
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Spring Boot JPA 控制台输出格式化后的 SQL 语句阅读 4615
-
Windows 路径的快捷方式阅读 1328
-
Redis 过期时间问题阅读 1938
-
PHP 判断函数、类、方法、属性、数组中的 key 是否存在阅读 3288
-
Spring Boot 使用 @ControllerAdvice 注解处理全局异常阅读 1998
-
Charles 抓包工具下载,安装及破解阅读 1265
-
IDEA Debug 时断点提示 No executable code found at line 434 in class阅读 2918
-
Android 有权查看使用权限的应用阅读 5660
-
Spring Boot @Scheduled 定时任务阅读 4235
-
数据结构:队列-数组实现阅读 1083