Search or ask Docker

DeviceMapping

DeviceMapping schema in Docker Engine API 1.57.

View Markdown

Schema

Type: object

A device mapping between the host and container
CgroupPermissions

Type: string

All schema constraints and annotations
{
  "type": "string"
}
PathInContainer

Type: string

All schema constraints and annotations
{
  "type": "string"
}
PathOnHost

Type: string

All schema constraints and annotations
{
  "type": "string"
}
All schema constraints and annotations
{
  "description": "A device mapping between the host and container",
  "example": {
    "CgroupPermissions": "mrw",
    "PathInContainer": "/dev/deviceName",
    "PathOnHost": "/dev/deviceName"
  },
  "properties": {
    "CgroupPermissions": {
      "type": "string"
    },
    "PathInContainer": {
      "type": "string"
    },
    "PathOnHost": {
      "type": "string"
    }
  },
  "type": "object"
}