项目作者: stefancrain

项目描述 :
A Folding@Home Docker container with GPU support
高级语言: Dockerfile
项目地址: git://github.com/stefancrain/folding-at-home.git
创建时间: 2020-03-17T13:39:07Z
项目社区:https://github.com/stefancrain/folding-at-home

开源协议:MIT License

下载


Running Folding@Home in docker with GPU support

build
auto-update

GitHub Tag
GitHub commit activity
Docker Layers
Docker Size
Docker Stars

Fighting COVID-19, and other diseases

TL;DR: Folding at home is simulating the dynamics of COVID-19 proteins to hunt for new therapeutic opportunities. This container distributes the binary in a hope to increase installs.

Unofficial, Unsupported

I’m not a member of the F@H team. I actively work on issues here, and have set this up to automatically update in my absence. This image is published to stefancrain/folding-at-home and automatically updated as the folding-at-home team releases changes.

Prerequisites

Deployment

CLI docker run

  1. docker run \
  2. --name folding-at-home \
  3. --gpus all \
  4. -p 7396:7396 \
  5. stefancrain/folding-at-home:latest \
  6. --user=YOUR_NAME_HERE \
  7. --team=229500 \
  8. --power=full \
  9. --gpu-usage=100 \
  10. --cpu-usage=100

Docker-compose

Docker-compose GPU access is currently blocked by upstream issue in compose #6691, tracked in #4. This will work for CPU folding only :

  1. ---
  2. version: "3"
  3. services:
  4. folding-at-home:
  5. image: stefancrain/folding-at-home:latest
  6. container_name: folding-at-home
  7. ports:
  8. - 7396:7396
  9. restart: unless-stopped
  10. command: ["--user=YOUR_NAME_HERE","--team=229500","--power=full","--gpu=false","--cpu-usage=100"]

K8s

I don’t currently have a K8s cluster at home, so I’m including examples of users running this image in their config.

  • onedr0p/k3s-gitops works great but /u/onedrop has no approved GPUs to test
  • coreweave/fah-docker (a different container) but the config to support GPU enabled docker container, untested (by me)

TODO: create k8s cluster and test!

Troubleshooting and FAQ

nvidia-docker

Is your docker run aborting with error could not select device driver "" with capabilities: [[gpu]]?

Please be sure you installed nvidia-docker as indicated in the ‘Prerequisites’ section above.

Nvidia

Does docker see all GPUs?

  1. docker run \
  2. --rm \
  3. --gpus all \
  4. --entrypoint="nvidia-smi" \
  5. stefancrain/folding-at-home:latest

FAHClient

What are the FAHClient defaults set for this container?

  • User : Anonymous
  • Team : Homelab - 229500 who?
  • Power : full (use full CPU)
  • gpu-usage : 100%
  • cpu-usage : 100%
  • web-allow/allow : allow web traffic to port 7396
  • smp : support smp

How do I review my FAHClient config?

  1. docker run \
  2. --rm \
  3. --gpus all \
  4. --entrypoint="/usr/bin/FAHClient" \
  5. stefancrain/folding-at-home:latest \
  6. --info

How can I see additional config options?

  1. docker run \
  2. --rm \
  3. --entrypoint="/usr/bin/FAHClient" \
  4. stefancrain/folding-at-home:latest \
  5. --help

How can I see my progress?

By default the container is open to local network traffic on 127.0.0.1:7396