[英]Docker-compose file configuration
How to map serial port information in docker-compose file.I am on windows and if using window container.如何在docker-compose文件中映射串口信息。我在windows上,如果使用window容器。 Did it the correct way?方法正确吗?
docker-compose.yml docker-compose.yml
version: '2.1'
services:
ise-4000:
image: ise-4000
build: .
ports:
- 5555:5555
devices:
- "COM3:COM3"
If using linux container, is the correct way?如果使用linux容器,是正确的方法吗?
version: '2.1'
services:
ise-4000:
image: ise-4000
build: .
ports:
- 5555:5555
devices:
- "COM3:\dev\ttyUSB1"
You may want to try with quotes.您可能想尝试使用引号。 That is the only difference I see from my working configuration.这是我从我的工作配置中看到的唯一区别。 The examples at https://docs.docker.com/compose/compose-file/ include quotes too. https://docs.docker.com/compose/compose-file/ 上的示例也包含引号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.