Folding@home is a project focused on disease research. Right now, to the best of my knowledge, they are the only GPU-based distributed computing project who are running calculations against Coronavirus.
Here is a combination of Nikolay Yurin's Folding@home Dockerfile and the BOINC Nvidia Dockerfile, so that you have an additional layer of sandboxing around GPU computations of Folding@home. In case you are allowed to use other people's computers, or your employer's, using Docker containers might even be a requirement.
I did not set up anything pre-built on the Docker hub.
Please inspect the Dockerfile and build the image yourself:
cd <git-checkout>
docker build -t my-fah-nvidia-image .
GPU access by containers went through several stages: first direct export of /dev/dri and other devices; then solutions with Docker "runtimes" (nvidia-docker v1 and v2); the current variant is the Nvidia Container Toolkit. The latter is the only one I tested this with.
As for the BOINC Nvidia container, please:
Install Docker (19.03 or later);
Install the Nvidia drivers (so that "nvidia-smi" gives you output on the host);
Install the Nvidia Container Toolkit (see "Usage" on the linked page to test nvidia-smi in a container).
Finally you can run this container:
docker run -d \
--name folding-at-home \
--gpus all \
-h node \
-e USER=Anonymous \
-e TEAM=0 \
-e ENABLE_GPU=true \
-e ENABLE_SMP=true \
--restart unless-stopped \
my-fah-nvidia-image \
--allow 0/0 --web-allow 0/0
-h node sets an anonymous hostname instead of copying yours.
The last line means that Folding@home's web access will let everybody in, but as the port is not exported, you can use it only from the Docker host, pointing your browser at the container:
echo http://$(docker inspect --format "{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" folding-at-home):7396
Additional configuration parameters can be passed as command line arguments. To get the full list of parameters run:
docker run my-fah-nvidia-image --help
Content type
Image
Digest
Size
93.9 MB
Last updated
about 5 years ago
docker pull ahtonen/fahclient