Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

nvdocker
========

nvdocker is library built on top of the docker-py python sdk to build
and run docker containers using nvidia-docker.

Targets nvidia-docker2

Installation
------------

- Install nvidia-docker

https://github.com/NVIDIA/nvidia-docker#quickstart

- Install nvdocker

::

pip install nvdocker

Usage
-----

These variables are already set in NVIDIA's `official CUDA
images <https://hub.docker.com/r/nvidia/cuda/>`__.

``visible_devices``
~~~~~~~~~~~~~~~~~~~

This variable controls which GPUs will be made accessible inside the
container.

- Possible values:

- ``0,1,2``, ``GPU-fef8089b`` …: a comma-separated list of GPU
UUID(s) or index(es),
- ``all``: all GPUs will be accessible, this is the default value in
our container images,
- ``none``: no GPU will be accessible, but driver capabilities will
be enabled.
- ``void`` or *empty* or *unset*: ``nvidia-container-runtime`` will
have the same behavior as ``runc``.

``driver_capabilites``
~~~~~~~~~~~~~~~~~~~~~~

This option controls which driver libraries/binaries will be mounted
inside the container.

- Possible values

- ``compute,video,graphics,utility`` …: a comma-separated list of
driver features the container needs,
- ``all``: enable all available driver capabilities.
- *empty* or *unset*: use default driver capability: ``utility``.

- Supported driver capabilities

- ``compute``: required for CUDA and OpenCL applications,
- ``compat32``: required for running 32-bit applications,
- ``graphics``: required for running OpenGL and Vulkan applications,
- ``utility``: required for using ``nvidia-smi`` and NVML,
- ``video``: required for using the Video Codec SDK.

``require``
~~~~~~~~~~~~~

A logical expression to define constraints on the configurations
supported by the container.

- Supported constraints

- ``cuda``: constraint on the CUDA driver version,
- ``driver``: constraint on the driver version,
- ``arch``: constraint on the compute architectures of the selected
GPUs.

Expressions
^^^^^^^^^^^

| Multiple constraints can be expressed in a single environment
variable: space-separated constraints are ORed, comma-separated
constraints are ANDed.
| Multiple environment variables of the form ``rew`` are ANDed together.


``cuda``
^^^^^^^^^^^^^^^^^^^^^^^

The version of the CUDA toolkit used by the container. If the version of the NVIDIA driver is insufficient to run this
version of CUDA, the container will not be started.

Possible values
'''''''''''''''

- ``cuda>=7.5``, ``cuda>=8.0``, ``cuda>=9.0`` …: any valid CUDA version
in the form ``major.minor``.


``cuda_vesion``
~~~~~~~~~~~~~~~~

| Similar to ``NVIDIA_REQUIRE_CUDA``, for legacy CUDA images.
| In addition, if ``NVIDIA_REQUIRE_CUDA`` is not set,
``NVIDIA_VISIBLE_DEVICES`` and ``NVIDIA_DRIVER_CAPABILITIES`` will
default to ``all``.

``disable_require`
^^^^^^^^^^^^^^^^^^^^^^^^^^

Single switch to disable all the constraints of the form

Copyright and License
---------------------

This project is released under the `UIUC/NCSA
License <https://github.com/acm-uiuc/nvdocker/blob/masterLICENSE>`__.
``docker-py`` is licensed under the `Apache License
2.0 <https://github.com/docker/docker-py/blob/master/LICENSE>`__.
nvidia-docker and nvidia-container-runtime are licensed under the `BSD
3-clause
license <https://github.com/NVIDIA/nvidia-container-runtime/blob/master/LICENSE>`__.


Metadata

Release files for nvdocker 0.0.2a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nvdocker 0.0.2a3
File Size Uploaded Provenance
nvdocker-0.0.2a3.tar.gz 4.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nvdocker 0.0.2a3
File Interpreter ABI Platform
nvdocker-0.0.2a3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 11.5 kB

Release files / nvdocker-0.0.2a3.tar.gz

Download URL nvdocker-0.0.2a3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
badf76e19b76a278942c4315b5076748b3ed8a3802b17af111260b6e2ae15464
BLAKE2b-256 checksum
How to use checksums
7262ef331ca06c463f614406114fdc9993a12b3ffd0fa6052a9e193e246d199d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nvdocker-0.0.2a3-py2.py3-none-any.whl

Download URL nvdocker-0.0.2a3-py2.py3-none-any.whl
Size 6.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
794a61c31c6098362e92eb0e43b0f5dfbc4bd37d5175e74e2350b55b08a53db6
BLAKE2b-256 checksum
How to use checksums
f61b67eb81ba54f6cf7113edeeb71700d927e206338b71e6941df9ffa109035e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nvdocker 0.0.2a3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page