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

Docker Runtime is always set to "runc" by iotedgehubdev #205

Closed
toolboc opened this issue Aug 8, 2019 · 4 comments
Closed

Docker Runtime is always set to "runc" by iotedgehubdev #205

toolboc opened this issue Aug 8, 2019 · 4 comments

Comments

@toolboc
Copy link
Member

toolboc commented Aug 8, 2019

I am developing a GPU accelerated IoT Edge module on an Nvidia Jetson Xavier device that requires setting the Docker runtime to "nvidia" to ensure that created modules are bootstrapped with nvidia-docker to allow appropriate access to the system GPU resources and CUDA librarires.

The module settings from my deployment.template.json can be seen below:

        "modules": {
          "DeepStreamModule": {
            "version": "1.0",
            "type": "docker",
            "status": "running",
            "restartPolicy": "always",
            "settings": {
              "image": "nvcr.io/nvidia/deepstream-l4t:4.0-19.07",
              "createOptions": {
                "HostConfig": {
                  "Runtime": "nvidia"
                },
                "WorkingDir": "/root/deepstream_sdk_v4.0_jetson/sources/apps/sample_apps/deepstream-test4",
                "Entrypoint": [
                  "/opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-test4-app",
                  "-i",
                  "/root/deepstream_sdk_v4.0_jetson/samples/streams/sample_720p.h264",
                  "--proto-lib",
                  "/opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_azure_edge_proto.so",
                  "--no-display",
                  "--schema",
                  "1",
                  "--topic",
                  "deepstream"
                ]
              }
            }
          }

These settings work perfectly fine in a deployment configuration and set the Docker Runtime appropriately:

docker inspect DeepStreamModule | grep Runtime
            "Runtime": "nvidia"

However, when the DeepStreamModule is created using the IoT Edge Simulator, I get the following result:

docker inspect DeepStreamModule | grep Runtime
            "Runtime": "runc",

Is it possible to override this behavior to allow setting of the Docker Runtime to something other than "runc"?

@adashen
Copy link
Contributor

adashen commented Aug 9, 2019

@toolboc Thank you very much to report the issue! We will investigate it and keep you updated when it is fixed.

@SLdragon
Copy link
Member

Thanks for your feedback, we will try to add Runtime support in future relesase

@SLdragon
Copy link
Member

Hi, @toolboc , from our investigation, only docker-compose.yaml with version 2.3, 2.4 supported runtime config, and it is not supported by version 3.x.

docker/compose#6239

So we will keep this issue open until docker-compose.yaml file 3.x supported this feature.

@konichi3
Copy link
Collaborator

konichi3 commented Jan 9, 2021

Hi

Thank you for filing the issue.

We are looking to clean up the reported issues that are obsolete such that our team can focus on the latest issues reported.
As such, we are going to close the issue for now.

If the issue is still blocking or critical to you, please file a new issue and we will do our best to respond as soon as possible.
When you file a new issue, please ensure following additional information are provided.

o If you believe it’s a bug, provide detail repro steps.
o If it’s a feature request, please note as such
o Expected outcome
o Is this a blocking issue?

Thank you,
Azure IoT Developer and Device team

@konichi3 konichi3 closed this as completed Jan 9, 2021
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

4 participants