Skip to content

ECS  >  Structures  >  Device

Device

Structure Class

Device dataclass

Bases: _SerdeShape

An object representing a container instance host device.

Attributes

container_path class-attribute instance-attribute
container_path: str | None = ...

The path inside the container at which to expose the host device.

host_path instance-attribute
host_path: str

The path for the device on the host container instance.

permissions class-attribute instance-attribute
permissions: list[str] | None = ...

The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.