Tag: 保险丝

共享容器之间共享容量,其中一个提供其文件系统?

我正在尝试使用mergerfs和samba来设置一些dockerised NAS: services: mergerfs: build: ./mergerfs # just debian and install latest release cap_add: – SYS_ADMIN devices: – /dev/fuse:/dev/fuse volumes: – media:/mnt/pool – /mnt/data0:/mnt/data0 … … samba: image: dperson/samba command: -s'media;/srv/media;yes;no;yes' # guest allowed, not RO volumes: – media:/srv/media depends_on: – mergerfs … volumes: media: 问题是,虽然我可以在samba上读取/写入/srv/media ,但在mergerfs上mergerfs不能读取到/mnt/pool 。 (我可以看到这一点,通过观看docker-compose logs mergerfs做docker-compose logs mergerfs docker-compose exec […]

安装davfs2卷时,无法在docker箱中打开保险丝装置

当我尝试在docker容器上安装davfs2卷时遇到以下错误: geoserver@8e8091d97157:~$ mount owncloud/ /sbin/mount.davfs: loading kernel module fuse /sbin/mount.davfs: loading kernel module fuse failed /sbin/mount.davfs: waiting for /dev/fuse to be created /sbin/mount.davfs: can't open fuse device /sbin/mount.davfs: trying coda kernel file system /sbin/mount.davfs: no free coda device to mount Dockerfile有以下内容: FROM debian:jessie ENV DEBIAN_FRONTEND noninteractive ENV TERM linux # environment variables ENV GEOSERVER_PASS geoserver […]

s3安装在容器内。 如何把它暴露给主机?

我一直玩的可能性,有一个容器,安装一个S3桶,并暴露在外面。 我使用https://github.com/FindHotel/aws-s3-mount将s3桶安装在容器内。 挂载使用FUSE。 我找不到从主机到达s3 mount的方法。 可能吗? 任何其他的想法来实现相同的目标? 谢谢!

使用gcsfuse在Docker容器中挂载Google云存储桶

我试图从一个泊坞窗容器中安装谷歌云桶,并得到以下错误: [root@cdbdc9ccee5b workdir]# gcsfuse -o allow_other –debug_gcs –key-file=/src/gcloud_service_account.json my-bucket-name /gcloud Using mount point: /gcloud Opening GCS connection… Opening bucket… daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: setUpBucket: OpenBucket: Bad credentials for bucket "my-bucket". Check the bucket name and your credentials. 我的凭证在我的主机上工作,但不在正在运行的容器上。 API说不要使用root来连接,但是你可以用-o allow_other标志(熔丝标志)覆盖它。 任何想法都表示赞赏。 这是运行在一个centos7的基本形象

在读取或写入docker中的挂载目录时,gcsfuse会给出input/输出错误

我在docker容器(基本图像centos7)内使用gcsfuse,不能读取或写入挂载的目录。 我使用gcsfuse像这样挂载目录: [root@6c24c3a6cc28 /]# gcsfuse –foreground –key-file=/src/gcloud_service_account.json my-bucket /gcloud/ Using mount point: /gcloud Opening GCS connection… Opening bucket… Mounting file system… File system has been successfully mounted. 当我尝试读取或写入挂载的目录,我得到这个错误: [root @ 6c24c3a6cc28 /]#ls -la / gcloud / ls:读取目录/ gcloud /:input/输出错误总数0 gcsfuse输出debugging信息: 保险丝:2016/01/14 01:33:41.110260 * fuseops.ReadDirOp错误:readAllEntries:ReadEntries:ListObjects:获取https://www.googleapis.com/storage/v1/b/my-bucket/o ? 定界符=%2F&投影=完整:私钥应该是PEM或普通PKSC1或PKCS8; parsing错误:asn1:结构错误:标签不匹配(16 vs {class:1 tag:27 length:123 isCompound:true}){可选:false显式:false应用:false defaultValue:标签:stringType:0 timeType: 0设置:false […]

s3fs无法在docker容器中安装吗?

我想在docker容器内部安装s3fs。 我用s3fs做了docker镜像,做了这样的事情: host$ docker run -it –rm docker/s3fs bash [ root@container:~ ]$ s3fs s3bucket /mnt/s3bucket -o allow_other -o allow_other,default_acl=public-read -ouse_cache=/tmp fuse: failed to open /dev/fuse: Operation not permitted 显示“操作不允许”错误。 所以我google了,做了这样的(再加–privileged = true): host$ docker run -it –rm –privileged=true docker/s3fs bash [ root@container:~ ]$ s3fs s3bucket /mnt/s3bucket -o allow_other -o allow_other,default_acl=public-read -ouse_cache=/tmp [ root@container:~ ]$ ls […]