Is it possible to map, the device port(USB port) of a worker node, to a POD?
Similar to docker create --device=/dev/ttyACM0:/dev/ttyACM0
Is it possible? I checked the refence doc, but could not find anything.
In Docker service, is it possible to map --device port
to service container(if I am running only 1 container)?
You can actually get this to work. You need to run the container privileged and use a hostPath like this:
containers:
- name: acm
securityContext:
privileged: true
volumeMounts:
- mountPath: /dev/ttyACM0
name: ttyacm
volumes:
- name: ttyacm
hostPath:
path: /dev/ttyACM0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With