Skip to content

wutz/juicefs-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image packaging for JuiceFS with Ceph

In some environments where ceph rados is used, but there is no dynamic library for rados corresponding version dependencies, juicefs cannot work directly. In this case, you can use the container with ceph dynamic library to mount juicefs and then pass the mount point to the host.

How to use

Format:

docker run \
    --rm \
    --net host \
    -v /etc/ceph:/etc/ceph \
    ghcr.io/wutz/juicefs:1.1-quincy \
        format \
        --storage ceph \
        --bucket ceph:https://<pool-name> \
        --access-key <cluster-name> \
        --secret-key <user-name> \
        redis:https://<username>:<password>@<redis-server-ip>:6379/1 \
        jfs

https://juicefs.com/docs/community/reference/how_to_set_up_object_storage#ceph-rados

Mount:

mkdir /jfs

docker run 
    --name juicefs \
    --net host \
    -v /etc/ceph:/etc/ceph \
    -v /var/jfsCache:/var/jfsCache \
    --mount type=bind,source=/jfs,target=/jfs,bind-propagation=shared \
    --privileged \
    ghcr.io/wutz/juicefs:1.1-quincy \
         mount \
         redis:https://<username>:<password>@<redis-server-ip>:6379/1 \
         /jfs

df -h /jfs

How to build

make image
make push

About

Docker Image packaging for JuiceFS with Ceph

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages