开源改变世界

Docker 中的“没有可用端口” #612

推推 grbl 2年前 (2023-02-03) 177次浏览
关闭
10 个任务中的第 4 个
zaneclaes 打开了这个问题 2020 年 6 月 15 日 · 1条评论
关闭
10 个任务中的第 4 个

Docker 中的“没有可用端口”#612

zaneclaes 打开了这个问题 2020 年 6 月 15 日 · 1条评论

注释

Docker 中的“没有可用端口” #612

描述

在 Docker 容器中运行,我看不到任何串口。我正在运行privileged并已验证我可以/dev/ttyACM0从容器内看到等。我相当确定此安全配置有效,因为我过去曾使用它来控制同一台机器上 Docker 容器内的串口Node REDWebControlCNC串口。实际上,我可以将 docker 映像换成其他容器之一,它们确实可以看到串行端口。

配置文件:

{
    "ports": [
        {
            "comName": "/dev/ttyACM0",
            "manufacturer": "MakerMadeCNC"
        },
        {
            "comName": "/dev/ttyUSB0",
            "manufacturer": "SainSmart"
        }
    ],
    "watchDirectory": "/cnc-watch",
    "mountPoints": [
        {
            "route": "/widget",
            "target": "https://cncjs.github.io/cncjs-widget-boilerplate/v1/"
        }
    ],
    "accessTokenLifetime": "30d",
    "allowRemoteAccess": true,
    "controller": "grbl",
    "state": {
        "checkForUpdates": true,
        "controller": {
            "exception": {
                "ignoreErrors": false
            }
        }
    },
    "secret": "REDACTED",
    "machines": [
        {
            "name": "SainSmart",
            "limits": {
                "xmin": 0,
                "xmax": 0,
                "ymin": 0,
                "ymax": 0,
                "zmin": 0,
                "zmax": 0
            },
            "id": "2b481cf7-23c2-4704-a71c-7b90926b7018"
        },
        {
            "name": "Maslow",
            "limits": {
                "xmin": 0,
                "xmax": 0,
                "ymin": 0,
                "ymax": 0,
                "zmin": 0,
                "zmax": 0
            }
        }
    ]
}

码头工人日志:

2020-06-14T21:44:19.600Z - info init Loading configuration from "/root/.cncrc"
2020-06-14T21:44:19.632Z - info init Watching "/cnc-watch" for file changes
2020-06-14T21:44:19.643Z - warn init You've enabled remote access to the server. It's recommended to create an user account to protect against malicious attacks.
2020-06-14T21:44:19.647Z - info init Starting a proxy server to proxy all requests starting with /widget to https://cncjs.github.io/cncjs-widget-boilerplate/v1/
2020-06-14T21:44:21.893Z - info init Starting the server at http://10.244.6.136:8000

截屏:
Docker 中的“没有可用端口” #612

版本

  • CNCjs:1.9.22
  • 节点.js:6.x
  • NPM:5.x

你如何安装CNCjs?

码头工人。

数控系统

  • Grbl
  • 冰沙
  • TinyG/g2核心

硬件

  • 树莓派
  • 台式机或笔记本电脑
  • 移动设备

操作系统

  • 不适用
  • 视窗
  • 苹果
  • Linux