-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: bacalhau dind w/ nvidia #463
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on a CPU node modifying COMPUTE_MODE
to cpu
and sending a cowsay
job.
Noticed that cancelling out of docker compose -f ./docker/docker-compose.yml up
left Bacalhau in a bad state where it would not restart:
bacalhau | time="2024-12-06T19:39:38.542704888Z" level=info msg="Starting up"
bacalhau | failed to start daemon, ensure docker is not running or delete /var/run/docker.pid: process with PID 7 is still running
Stopping with docker compose -f ./docker/docker-compose.yml down
did not have this issue. May be worth investigating if this would surface during restarts.
I added a |
* fix: bacalhau dind w/ nvidia * fix: smaller RP image * fix: PR feedback
Summary
Our current
bacalhau
container was not properly mounting nvidia drivers (nor subsequently making them available to job containers). This PR makes a few changes:dind
) and nvidia container toolkit/var/run/docker.sock
as a volume)Task/Issue reference
Closes: #440
Test plan
On a GPU-enabled machine, build the current container version via:
docker compose -f ./docker/docker-compose.yml build
docker compose -f ./docker/docker-compose.yml up