An encrypted file system that is mounted with FUSE on Linux. Used to create encrypted directories.
1.2K
Get the image
docker pull xorio42/rencfs
Start a container to set up mount in it
docker run -v ~/Downloads:/share -it --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined xorio42/rencfs:latest /bin/sh
Replace ~/Downloads with a path on the host machine you want to share with the container.
In the container, create mount and data directories.
mkdir mnt && mkdir data
Start rencfs
rencfs mount --mount-point mnt --data-dir data
Enter a password for encryption. If it says that the password doesn't match, please start it again; it will work the second time. This is an unknown possible bug.
Get the container ID
docker ps
In another terminal, attach the running container with the above ID
docker exec -it <ID> /bin/sh
From here, you can play with it by creating files in mnt directory.
cd mnt
mkdir 1
ls
echo "test" > 1/test
cat 1/test
cp /share/some-file
ls -la
When you close the mount point by Crtl+C in the first window, it will try to unmount the mount point. If it's in use, it could not succeed. In that case, you can manually unmount it as root
cd && umount mnt
If that still fails, you can try
umount -f mnt
If still failing
umount -l mnt
Content type
Image
Digest
sha256:f18abbfb8…
Size
16.9 MB
Last updated
over 1 year ago
docker pull xorio42/rencfs