Skip to content

ctr --device flag should support map host path to container path #5046

@qiutongs

Description

@qiutongs

What is the problem you're trying to solve
Current ctr tool has --device flag to add host device to container, like ctr run --device=/dev/sda1. But it cannot map the host path to container path, like ctr run --device=/dev/sda1:/dev/xyz.

Ref: #3066

Describe the solution you'd like
ctr run --device=/dev/sda1:/dev/xyz will map the path /dev/sda1 to /dev/xyz in container. This behavior is same as docker --device.

Additional context

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