testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::Device Struct Reference

A host device node mapped into the container (a HostConfig.Devices entry) — docker run --device parity. More...

#include <testcontainers/Device.hpp>

Public Attributes

std::string path_on_host
 e.g. "/dev/fuse"
std::string path_in_container
 where the node appears inside
std::string cgroup_permissions = "rwm"
 any subset of r(ead) w(rite) m(knod)

Detailed Description

A host device node mapped into the container (a HostConfig.Devices entry) — docker run --device parity.

Linux daemons only. The host path must exist on the machine the DAEMON runs on: with Docker Desktop that is the Linux VM, not the machine the tests run on.

Member Data Documentation

◆ path_on_host

std::string testcontainers::Device::path_on_host

e.g. "/dev/fuse"

◆ path_in_container

std::string testcontainers::Device::path_in_container

where the node appears inside

◆ cgroup_permissions

std::string testcontainers::Device::cgroup_permissions = "rwm"

any subset of r(ead) w(rite) m(knod)