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:

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