Giter Club home page Giter Club logo

Comments (3)

christianepeters avatar christianepeters commented on May 16, 2024 1

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.

boland25 avatar boland25 commented on May 16, 2024 1

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.

christianepeters avatar christianepeters commented on May 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.