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
官方文档
阅读 1036 · 发布于 2022-11-21
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
java.sql.SQLException: ORA-01000: maximum open cursors exceeded阅读 2455
-
Windows C 盘隐藏文件 pagefile.sys 扩大电脑内存阅读 1062
-
MongoDB 过期索引(TTL 索引)阅读 4484
-
算法:解析中缀表达式阅读 1347
-
OpenResty 使用 cjson 操作 JSON 数据阅读 7070
-
Android 允许使用大内存阅读 1917
-
MongoDB 集群节点 RECOVERING 故障恢复阅读 5152
-
Vue No module factory available for dependency type: CssDependency阅读 775
-
PostgreSQL 修改字段属性阅读 2695
-
IDEA 去除 Unchecked cast from Object to 提示阅读 3778