我已经在datalab机器上安装了gcsfuse。创建了目标机器,并使用chmod授予所有调用的写权限:
!gcsfuse --foreground --debug_fuse archs4 /content/datalab/mount/我收到以下错误:
Opening bucket...
Mounting file system...
mountWithArgs: mountWithConn: Mount: mount: running fusermount: exit status 1
stderr:
fusermount: fuse device not found, try 'modprobe fuse' first有什么办法可以解决这个问题吗?(我使用的是: gcsfuse版本0.23.0 (Go版本go1.9))
非常感谢,艾拉
发布于 2018-01-24 12:48:11
要让任何FUSE文件系统在Docker容器中工作,您需要在特权模式下运行容器。如果你不想这样做,至少你需要在启动容器时设置这些标志:
--security-opt apparmor:unconfined --cap-add mknod --cap-add sys_admin --device=/dev/<fuse_device> -v /mnt/<mnt_point>:/mnt/<mnt_point>:shared其中fuse_device是您正在使用的FUSE驱动器的名称(例如gcsfuse),mnt_point是您要挂载它的路径。
请记住,默认情况下,Datalab不会在特权模式下运行,也不会使用这些标志,因此,如果您使用CLI工具(datalab create命令)运行Datalab,这将不起作用。
https://stackoverflow.com/questions/48407184
复制相似问题