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

Error response from daemon: unknown or invalid runtime name: nvidia #139

Closed
Yukun-Cui opened this issue Aug 15, 2023 · 6 comments
Closed
Assignees

Comments

@Yukun-Cui
Copy link

After ran docker compose --profile model up, I met follow error.
sunlogin_20230815171536
I have set the /etc/docker/daemon.json.
nvidia-smi could show my GPUs successfully.
My environment : win11 22621.675 + docker desktop + WSL2.0 Ubuntu-20.04

@nicozhan
Copy link
Contributor

Hi @1572161937 !
After successfully installing nvidia runtime, please try to restart Docker.

@Yukun-Cui
Copy link
Author

I have restarted win11, restarted docker, restarted WSL2.0, it doesn't work.
But I am not sure whether I have installed nvidia runtime, how can i check it?

@nicozhan
Copy link
Contributor

5f36c1bdfa452aada92e6ce412a8f6cd

If the runtime in docker info contains nvidia, the installation is successful. (Refer to nvidia official website for installation.)

@Yukun-Cui
Copy link
Author

Yukun-Cui commented Aug 16, 2023

The issue seems to be:
The Linux server uses the nvidia-docker to start CUDA's Docker. While in WSL2.0, the docker run --gpus is used.
However, in the docker-hub package, this module is packaged as a whole and cannot modify the compilation commands.

@nicozhan
Copy link
Contributor

We think it's because of WSL 2.0 issue. Please try to use the Linux system to install directly.
The compilation parameters in the docker image are all based on the Linux and some of them may not be supported by WSL 2.0.

@nicozhan
Copy link
Contributor

Hi @1572161937 Please see #144

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