Comments (3)
I'm having the same issue. The docker container is not able to write any changes to the user's home directory.
Workaround 1 is to run the command with -s
making the instance stateless. All computations stay only in the container and are therefore not persistent.
The problem is that the docker run
command doesn't pass on the permissions correctly. This is what the ./RunToolkit.sh -p ubuntu
call does:
docker run -d --name fhe-toolkit-ubuntu -v /home/username/Documents/fhe-toolkit-linux/FHE-Toolkit-Workspace:/opt/IBM/FHE-Workspace -p 8443:8443 ibmcom/fhe-toolkit-ubuntu
Ubuntu (also CentOS) puts default permissions of the FHE-Toolkit-Workspace repository to 755 which does not allow the container to write into the local FHE-Toolkit-Workspace folder.
Workaround 2: If I used chmod 777 FHE-Toolkit-Workspace
, the Docker container is able to write into the local directory, making all computations persistent. That's quick and dirty.
Better would be to fix the ./RunToolkit.sh
to pass on the permissions during the folder bind.
from fhe-toolkit-linux.
When running this on Linux we realize that there is a permissions issue on the persistent data space that is created on the user's local disk, FHE-Toolkit-Workspace
directory. Because this is shared space between the local disk and the dockerimage, there is confusion on the docker side as to who the owner is.
It is a problem that we are working towards to find an ideal solution, but in the meantime there is a quick fix workaround.
To get pass the permission issue in the PersistData.sh
file, at the end of the file, line 260 or beyond, add a change permission command to the directory such as this...
chmod -R 777 $PERSISTENT_FHE_WORKSPACE_PATH
This will allow the fhe user on the docker image to access and write to the necc. files to run the demos.
from fhe-toolkit-linux.
As an addition: I noted that MacOS is more forthcoming than Linux. When running the Linux toolkit (CentOS) in the terminal on my Mac, the command RunToolkit.sh -p centos
triggers a pop-up window asking me to give permissions to let the container write to my Documents. On the other hand, CentOS and Ubuntu will take note of the issue but won't do anything about it.
from fhe-toolkit-linux.
Related Issues (20)
- update readme of Deploy to HyperProtect
- Deploy to Hyper Protect interactive Wizard could be more helpful, explanative
- Fold Lab Guide for Mac into the Getting_Started.md file
- Question HOT 5
- Alpine Docker returns no results found on Privacy Preserving Search
- Question about the built libraries libhelib.so and libmlhelib.a HOT 10
- Add more info to the Interactive Wizard
- Question about sending BinaryIO of context and pubKey to another party HOT 10
- Drop Support for Alpine
- Proxy Re-Encryption supports for CKKS HOT 1
- first-interaction GitHub Action is broken for external collaborators HOT 1
- SEAL interface source code in gitbug HOT 3
- Check your app for health community HOT 1
- Questions about the credit card fraud example HOT 2
- Keras layers support HOT 5
- Extensibility for the existing use cases being provided in the Notebook HOT 6
- Install pyhelayers offline. HOT 3
- Some detailed bootstrapping parameter settings HOT 3
- Error : nnp.init_from_onnx HOT 4
- CentOS HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhe-toolkit-linux.