Skip to content

Support device mount for windows container #4878

@Binyang2014

Description

@Binyang2014

What is the problem you're trying to solve
Mount device to windows container

Describe the solution you'd like
Windows container current support device mount for process isolation. Refer: https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/hardware-devices-in-containers.
So hope we can add windows device mount feature. OCI already support windows container device mount: https://github.com/opencontainers/runtime-spec/blob/master/config-windows.md
And Moby already has some workable code:
https://github.com/moby/moby/blob/07bb45e23a364f0d27a82d9ac13ab79846bd7add/daemon/oci_windows.go#L262-L283.

Additional context
Add this feature can enable run GPU workload via contrainerd in non-HyperV supported env.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions