Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias authored Dec 5, 2024
1 parent 930322f commit 5b26c64
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ docker pull xorio42/rencfs
Start a container to set up mount in it

```bash
docker run -v ~/Downloads:/Downloads -it --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined xorio42/rencfs:latest /bin/sh
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 you want to share with the container.**
Expand Down Expand Up @@ -194,6 +194,14 @@ echo "test" > 1/test
cat 1/test
```

You can also copy files from `/share`.

```bash
cd mnt
cp /share/file1.txt .
file file1.txt
```

## As a library

For the library, you can follow the [documentation](https://docs.rs/rencfs/latest/rencfs/).
Expand Down

0 comments on commit 5b26c64

Please sign in to comment.