cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4189
Views
1
Helpful
3
Replies

How to access serial in a docker container?

Paulo Seguel
Cisco Employee
Cisco Employee

is there a way to tell a docker container to use a serial device in the IR829?

I know that a typical Docker container can be granted serial device access with "docker run --device=/dev/ttyS3 ..."

But how do I tell to the ioxclient/local manager to grant serial device access to a package?

3 Replies 3

Steve Zhang
Cisco Employee
Cisco Employee

You need to set the serial port in the file of package.yaml. Please refer to Cisco DevNet: IOx - Docs (go to Python Application Using Serial Port as an example for using serial port)

Cisco DevNet: IOx - Docs, in this link we can see the examples for creating docker files, Yaml and container, but we couldn't found any serial port example with Yaml,

we are getting following error for the python example link provided

Capture.PNG

Is there any serial port example for docker container with Yaml file

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: