juicedata / juicefs-csi-driver

JuiceFS CSI Driver
https://github.com/juicedata/juicefs
Apache License 2.0
214 stars 82 forks source link

[QUESTION] cann't use docker volume share in different docker container #934

Open luojiyin1987 opened 4 months ago

luojiyin1987 commented 4 months ago

Question

Before asking a question, make sure you have:

What help did you want: share juicefs in different docker container Environment:

I can see api-service container /tmp/@wessberg/polyfiller file save in docker volume myjfs-data . when I into myjfs container to see /mnt , I can't find any file.

root@64c86b66b14b:/# juicefs  info   /mnt
/mnt :
inode: 1
files: 0
 length: 0 Bytes
size: 4.00 KiB (4096 Bytes)
 path: /
zwwhdls commented 3 months ago

Hi, can you try set dependence myjfs on api-service and have a retry? It's because myjfs container should be ready before application container which uses juicefs.

luojiyin1987 commented 3 months ago

Hi, can you try set dependence myjfs on api-service and have a retry? It's because myjfs container should be ready before application container which uses juicefs

I use Rclone to mount Azure Blob
https://github.com/kaiyuanshe/Polyfiller/blob/faaf1cc16800773ef6dacc24402303a8a1da242b/docker-compose.yml#L13-L28

luojiyin1987 commented 3 months ago

@zwwhdls dependence myjfs on api-service , I had tryed it 。 juicsFS can share file with other Docker container by Host Volume , but Named Volume is not work .