You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The given config snippet is accepted but does not produce the same results as running directly with Docker, i.e. no devices are made available to the container:
devices = [
{
host_path = "/dev/bus/usb/002"
}
]
Reproduction steps
These examples should be run on a node with usb devices connected, i.e. there's something under /dev/bus/usb
Plain Docker variant (works)
%> docker run --rm -it --device /dev/bus/usb alpine:latest ls /dev/bus/usb
Hi @Artanicus, sorry you ran into this and thanks for reporting it! While the docker CLI defaults container_path to the host_path, Nomad does not. Explicitly setting container_path is required as of Nomad 1.5.3:
That being said we ought to default container_path if it's unset to match Docker's behavior (and I suspect the common use case is that the path's match).
Nomad version
Operating system and Environment details
Issue
The given config snippet is accepted but does not produce the same results as running directly with Docker, i.e. no devices are made available to the container:
Reproduction steps
These examples should be run on a node with usb devices connected, i.e. there's something under
/dev/bus/usb
Plain Docker variant (works)
Nomad variant (does not work)
Expected Result
Vanilla Docker run:
Actual Result
Nomad task log:
The text was updated successfully, but these errors were encountered: