Skip to content
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

How can I use the toolkit with prebuilt docker binaries? #808

Open
ChenXinXuTUSC opened this issue Nov 23, 2024 · 2 comments
Open

How can I use the toolkit with prebuilt docker binaries? #808

ChenXinXuTUSC opened this issue Nov 23, 2024 · 2 comments

Comments

@ChenXinXuTUSC
Copy link

I use docker by directly launching the executable file ./dockerd --config-file path/to/daemon.json, then how should I use nvidia-container-toolkit? I prefer to do experiments with standalone binaries instead of package installed by apt install, as I can't guarantee the option won't break the existing environment, I'm on a public shared machine for deep learning experiment.

@yeongrokgim
Copy link

Just in case you have not explored this part yet, here's updated configuration after running nvidia-ctk ....

$ sudo nvidia-ctk runtime configure --set-as-default

WARN[0000] Ignoring runtime-config-override flag for docker 
INFO[0000] Loading config from /etc/docker/daemon.json  
INFO[0000] Wrote updated config to /etc/docker/daemon.json 
INFO[0000] It is recommended that docker daemon be restarted. 


$ cat /etc/docker/daemon.json

{
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "args": [],
            "path": "nvidia-container-runtime"
        }
    }
}

@ChenXinXuTUSC
Copy link
Author

@yeongrokgim ,thx! I think I could just place my daemon.json in /etc/docker and specified this file when using nvidia-container toolkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants