Skip to main content

Docker Success Center

The Docker enterprise customer portal.

Docker, Inc.

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

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

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

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