0 0 Share PDF

How can I configure the Docker container deployment with devices (--device option) through Docker Cloud?

Article ID: KB000266

To use the --deviceoption through the Docker Cloud web console, use Stack deployment (a Stackfile). An example of how devices are declared in a Stackfile is shown below:

devices:
 - "/dev/ttyUSB0:/dev/ttyUSB0"
 - "/dev/ttyUSB1:/dev/ttyUSB1"

For more information on Stack YAML reference, please refer to the documentation:

https://docs.docker.com/docker-cloud/feature-reference/stack-yaml-reference/#devices