w-okada / voice-changer

リアルタイムボイスチェンジャー Realtime Voice Changer
Other
15.28k stars 1.64k forks source link

[ISSUE]: Linux docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. #1163

Closed MyUsernamee closed 3 months ago

MyUsernamee commented 3 months ago

Voice Changer Version

Pulled from github

Operational System

Ubuntu 23.10

GPU

3070 TI

Read carefully and check the options

Model Type

MMVC RVC

Issue Description

I cloned the repository and I am unable to start the docker server.

Here are the commands I ran:

git clone --recursive https://github.com/w-okada/voice-changer.git
cd voice-changer 
npm run build:docker:vcclient
sudo bash ./start_docker.sh

This yielded:

VC Client start...(with gpu)
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

Attemping to start without gpu by running `sudo USE_GPU=off bash ./start_docker.sh``` yielded:

VC Client start...(cpu)
exec with [UID : 0, GID: 0]
groupmod: GID '0' already exists

I am using the latest version of docker. I couldn't find a related issues.

Thank you for any help in advance! :)

Application Screenshot

No response

Logs on console

None

MyUsernamee commented 3 months ago

Running without sudo allows me to run it in cpu mode

I added my self to the docker group and restarted the docker service.

MyUsernamee commented 3 months ago

Fixed!

I had to make sure I have the Nvidia docker container toolkit downloaded:

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

Then I had to restart docker and everything worked! :)