Docker Windows主机 - 在用于Linux容器的Linux VM上安装nVidia驱动程序

时间:2018-05-25 15:20:01

标签: docker docker-windows nvidia-digits

我试图在我的Windows机器上使用来自nVidia的DIGITS而不是自己构建它。我认为使用Docker更容易(开始改变主意)。

我的理解是Windows上的Docker基本上使用Linux VM来实际运行Docker ..因此,主机Windows上的Docker接口只是与安装在Linux VM上的Docker进行交互,然后将托管客户机Linux容器运行DIGITS。

当我尝试运行DIGITS容器时,出现以下错误:

============
== DIGITS ==
============

NVIDIA Release 18.05 (build 425957)

Container image Copyright (c) 2018, NVIDIA CORPORATION.  All rights reserved.
DIGITS Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
Caffe Copyright (c) 2014, 2015, The Regents of the University of California (Regents). All rights reserved.
Torch Copyright (c) 2016, Soumith Chintala, Ronan Collobert, Koray Kavukcuoglu, Clement Farabet. All rights reserved.
TensorFlow Copyright (c) 2017, The TensorFlow Authors.  All rights reserved.

Various files include modifications (c) NVIDIA CORPORATION.  All rights reserved.
NVIDIA modifications are covered by the license terms that apply to the underlying project or file.

WARNING: The NVIDIA Driver was not detected.  GPU functionality will not be available.
   Use 'nvidia-docker run' to start this container; see
   https://github.com/NVIDIA/nvidia-docker/wiki/nvidia-docker .

  ___ ___ ___ ___ _____ ___
 |   \_ _/ __|_ _|_   _/ __|
 | |) | | (_ || |  | | \__ \
 |___/___\___|___| |_| |___/ 6.1.1

Did you forget to "make pycaffe"?
A valid Caffe installation was not found on your system.
Use the envvar CAFFE_ROOT to indicate a valid installation.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/digits/digits/__main__.py", line 70, in <module>
    main()
  File "/opt/digits/digits/__main__.py", line 53, in main
    import digits.config
  File "/opt/digits/digits/config/__init__.py", line 7, in <module>
    from . import (  # noqa
  File "/opt/digits/digits/config/caffe.py", line 230, in <module>
    executable, version, flavor = load_from_path()
  File "/opt/digits/digits/config/caffe.py", line 57, in load_from_path
    import_pycaffe()
  File "/opt/digits/digits/config/caffe.py", line 126, in import_pycaffe
    import caffe
  File "/usr/local/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, \
  File "/usr/local/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: libnvidia-ml.so.1: cannot open shared object file: No such file or directory

DIGITS docker image需要在主机上安装nVidia驱动程序 AFAIK。我认为这里的错误意味着没有安装驱动程序。但是,我不知道如何在Linux主机上安装nVidia驱动程序,因为它只是Windows上Docker界面使用的虚拟机。

有没有办法访问Linux VM并在其上安装nVidia驱动程序?

0 个答案:

没有答案