Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Volume setup fails across device boundaries #47

Closed
mvollrath opened this issue Feb 9, 2016 · 2 comments
Closed

Volume setup fails across device boundaries #47

mvollrath opened this issue Feb 9, 2016 · 2 comments

Comments

@mvollrath
Copy link
Contributor

When your Docker graph is not mounted on the same device as /usr/bin etc., you see these sorts of errors during nvidia-docker volume setup:

Error: link /usr/bin/nvidia-cuda-mps-control /mnt/docker/volumes/nvidia_driver_352.79/_data/bin/nvidia-cuda-mps-control: invalid cross-device link

This is caused by hard-linking the binaries here:

if err := os.Link(f, l); err != nil {

mvollrath added a commit to EndPointCorp/nvidia-docker that referenced this issue Feb 10, 2016
Hard-linking will fail when Docker is on an alternate mount point.

Fixes NVIDIA#47
@3XX0
Copy link
Member

3XX0 commented Feb 10, 2016

It has been discussed in #38 and #34
Copying driver files is not recommended, the overhead is non negligible (100+MB) and it can potentially confuse the NVIDIA uninstaller thus interfering with drivers upgrades.

If we really want to do it, it should be on the volume setup only. Also keep in mind that the nvidia package can be used outside of the nvidia-docker project, the behavior of Create needs to be defined (does it create links or copies?).

In any case, relying on the plugin to manage the volumes is still preferred.

@mvollrath
Copy link
Contributor Author

Since the plugin doesn't support a Quadro K600, that's not an option for me right now. #40

I'm integrating nvidia-docker with a system that boots from a read-only image, so the entire root filesystem is overlayfs with the NV driver already installed. Running the Docker graph on overlay would quickly exhaust it, so a fresh logical volume is prepared at boot. It looks like I'll have to keep running with my fork until either plugin compatibility is fixed or I can refactor this copy fallback to only affect volume setup.

mvollrath added a commit to EndPointCorp/nvidia-docker that referenced this issue Feb 16, 2016
Hard-linking will fail when Docker is on an alternate mount point.

Fixes NVIDIA#47
mvollrath added a commit to EndPointCorp/nvidia-docker that referenced this issue Feb 16, 2016
Hard-linking will fail when Docker is on an alternate mount point.

Fixes NVIDIA#47
mvollrath added a commit to EndPointCorp/nvidia-docker that referenced this issue Feb 16, 2016
Hard-linking will fail when Docker is on an alternate mount point.

Fixes NVIDIA#47
@3XX0 3XX0 closed this as completed in 79a114d Feb 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants