Error using DOCKER & Rancher Desktop

I have just started working with Docker and Rancher Desktop. I have imported my flows from previous window's version. The last time i used the NCD devices were two-three years ago.
Now when i am running flows, i am getting error message in RANCHER mynodered log as " [Error: Error: No such file or directory, cannot open COM4] ". I have connected NCD wireless mega modem using USB on my laptop. How can i resolve this issue?

This is not uncommon when using USB/Serial ports. They have a tendency to change port. This is even more likely on Windows but can still happen on Linux as well.

You will need to know what COM port the device is connected to now and then adjust Docker to use that port. Since you can map ports in your Docker config, I think that the correct approach would be to use a fixed port inside Docker but adjust the hosts port and restart the Docker instance.

Hi, still getting same error. if you can guide with few commands, would be appreciated.

What com port is your modem on?

What is the Docker configuration of your Node-RED container?

modem on com4.
we are just running docker in powershell. what type of configurataion should i do and how?

Are you using the standard Node-RED container? That uses Linux. To get Windows COM ports to mount as Linux USB devices takes some work.

I've not done this as I don't run Node-RED in Docker on any platform. However, there appear to be articles online to help: