[Question] How to install gdrcopy in docker container?
For some reasons, I don't have access to the host machine. So, could gdrcopy be installed within docker?
@zigzagcai Sorry, I missed your question. GDRCopy comes with its own driver. You need to be root to install this driver. You can use this gdrdrv container image hosted in NGC (https://catalog.ngc.nvidia.com/orgs/nvidia/teams/cloud-native/containers/gdrdrv). Still, you need to run it as a privilleged container.
@pakmarkthub ,hi, I found the same issue. Does this words -- “You need to be root to install this driver." mean that in container, if in sudo mode, I can install the driver? If so, can you provide some instructions on how to install the driver?
Hi @wanglecheng123,
Do you plan to use the gdrdrv container image? In that case, I suggest that you use it as part of the GPU Operator. That will do the right thing for you. If you want to do it manually, you can use this command as an example docker run -d --name gdrcopy-driver --privileged -v /:/driver-root --env NVIDIA_DRIVER_ROOT=/driver-root <the-gdrdrv-image>