簡體   English   中英

Minikube安裝失敗,出現輸入/輸出錯誤

[英]Minikube mount fails with input/output error

金田在錫罐上怎么說。 我嘗試執行minikube mount /some/dir:/home/docker/other_dir & ,它失敗並顯示以下錯誤:

Mounting /some/dir into /home/docker/other_dir on the minikube VM
This daemon process needs to stay alive for the mount to still be accessible...
ufs starting
ssh command error:
command : 
sudo mkdir -p /home/docker/other_dir || true;
sudo mount -t 9p -o trans=tcp,port=38902,dfltuid=1001,dfltgid=1001,version=9p2000.u,msize=262144 192.168.99.1 /home/docker/other_dir;
sudo chmod 775 /home/docker/other_dir;
err     : exit status 1
output  : chmod: changing permissions of '/home/docker/other_dir': Input/output error

然后,當我在/home/docker minikube ssh內執行minikube sshls -l ,我得到了:

$ ls -l
ls: cannot access 'other_dir': Input/output error
total 0
d????????? ? ?   ?   ?            ? other_dir

更新:

經過一些試驗,當/some/dir擁有當前用戶以外的用戶時,似乎出現了問題。 為何如此,目前尚不清楚。

您正在運行哪個版本的minikube? 這是為我工作的minikube版本v0.20.0

minikube mount /tmp/moun/:/home/docker/pk Mounting /tmp/moun/ into /home/docker/pk on the minikube VM This daemon process needs to stay alive for the mount to still be accessible... ufs starting運行良好,我也可以創建文件,

$ touch /tmp/moun/cool

我們可以在以下位置檢查文件

$ minikube ssh $ ls /home/docker/pk cool

https://github.com/kubernetes/minikube/issues/1822如果要掛載該用戶擁有的文件夾,則需要以該用戶身份運行minikube mount命令。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM