You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Docker image of SignalK with two connected serial ports in my boat Pi, one ESP32 NMEA2000 Sailor Hat and another one for NMEA1883 from the Garmin plotter. Using USB0/USB1 meant that they can change places after a reboot, and then neither of them will work. That happened to me today, because a week or so ago my Docker Compose file with this entry stopped working, after having worked for a couple of years or so:
After the update I had on the Pi 4 about a week ago it throws this error:
invalid spec: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0:/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0: too many colons
I tried with double and single quotes and the Unicode \u0003A, but that did not work.
I tried using a regular Docker command, from Decomposerize, but that thew an error as well (and that would have done it even before, as far as I could understand when posting this issue as an issue at the moby git:
docker: bad format for path: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0:/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0.
According to those at the Docker forum who knows what they are talking about (unlike me...) it really shouldn't have worked for the last couple of years, but it did. The final solution was to create symlinks. That works.
Steps To Reproduce
Connect two serials.
Put in serial by path.
Try to start it up.
Compose Version
docker compose version
Docker Compose version v2.29.1
docker-compose version
bash: fant ikke kommando docker-compose
(Norwegian for could not find the command docker-compose)
it really shouldn't have worked for the last couple of years, but it did
indeed, and while the code used to be flexible here and accept such a path with colons, such a confusing binding syntax should not be supported and would be subject to both confusion and potential bugs.
Using symlinks is indeed a good workaround
Actual fix imho is to add explicit support for "long syntax" to disambiguate such a path:
Description
I have a Docker image of SignalK with two connected serial ports in my boat Pi, one ESP32 NMEA2000 Sailor Hat and another one for NMEA1883 from the Garmin plotter. Using USB0/USB1 meant that they can change places after a reboot, and then neither of them will work. That happened to me today, because a week or so ago my Docker Compose file with this entry stopped working, after having worked for a couple of years or so:
After the update I had on the Pi 4 about a week ago it throws this error:
I tried with double and single quotes and the Unicode
\u0003A
, but that did not work.I tried using a regular Docker command, from Decomposerize, but that thew an error as well (and that would have done it even before, as far as I could understand when posting this issue as an issue at the moby git:
According to those at the Docker forum who knows what they are talking about (unlike me...) it really shouldn't have worked for the last couple of years, but it did. The final solution was to create symlinks. That works.
Steps To Reproduce
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: