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

Volume creation #7

Open
eywalker opened this issue Jan 26, 2017 · 1 comment
Open

Volume creation #7

eywalker opened this issue Jan 26, 2017 · 1 comment
Assignees

Comments

@eywalker
Copy link
Owner

eywalker commented Jan 26, 2017

Because nvidia-docker-compose bypasses the use of nvidia-docker binary executable, it currently does not create driver volume like nvidia_driver_370.28 when it's not present. This means that if you run nvidia-docker-compose without having ever run nvidia-docker, you are likely to get error message like:

ERROR: Volume nvidia_driver_370.28 declared as external, but could not be found. Please create the volume manually using `docker volume create --name=nvidia_driver_370.28` and try again.

You can easily fix this issue by running something via nvidia-docker (i.e. [sudo] nvidia-docker run nvidia/cuda nvidia-smi) once to get the appropriate Docker volume created. However this is rather inconvenient and can be confusing to the user. It would be best if nvidia-docker-compose will invoke the appropriate volume creation command at the time of its invocation to ensure that necessary volumes are present.

@geyang
Copy link

geyang commented Jun 27, 2018

To ALL: To make this clear, if you run into this error, just run the following command:

nvidia-docker run nvidia/cuda nvidia-smi

this will create a new volume "nvidia-docker nvidia_driver_384.130:.

You can see this newly created volume via:

docker volume ls

and it should show something like

DRIVER              VOLUME NAME
local               e5a99744625e133071dd218773273216cea3f68ae577489150815ac90a8b4c9b
local               fa48cbfcf3392ff0e621fbc772a48dc7395a01c1206bc3bec5e3d961992e3650
local               your other volume
nvidia-docker       nvidia_driver_384.130

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

No branches or pull requests

2 participants