Add rdd-guest socket bridge for Windows Docker socket forwarding#37
Conversation
jandubois
left a comment
There was a problem hiding this comment.
AI review: https://jandubois.github.io/rancher-desktop-opensuse/20260427-144006-pr-37.html
I think only (I1) about the src/rdd-guest/rdd-guest binary is a real concern. That file should probably be added to .gitignore.
| // Package main is the rdd-guest agent that runs inside the Lima/WSL2 VM. | ||
| // It listens on a vsock port and forwards connections to the Docker socket, | ||
| // enabling the Windows host to reach /var/run/docker.sock via Hyper-V vsock. | ||
| // |
There was a problem hiding this comment.
That should be Command rdd-guest is…
jandubois
left a comment
There was a problem hiding this comment.
Thanks, LGTM
There is (I1) in https://jandubois.github.io/rancher-desktop-opensuse/20260430-134246-pr-37.html that may be worthwhile addressing if there are further changes in this area.
The suggestion requires sleep, wouldn't it make sense for the back off to go in the systemd? |
I think so, because I think even a 100ms sleep is not enough if it keeps failing. But check with @mook-as first. |
|
The relevant code: rancher-desktop-opensuse/src/rdd-guest/main.go Lines 42 to 52 in ed5f52e So the assumption is that If you question is if it makes sense to just abort, and let systemd manage restarting the process:
Ultimately, it probably depends on why we're getting an error from |
From Claude Code: What
|
Build rdd-guest from rancher-desktop-daemon's cmd/rdd-guest and include it in the VM image. Add a systemd unit that starts it on WSL2 instances as part of rancher-desktop.target. Signed-off-by: Nino Kodabande <nkodabande@suse.com>
jandubois
left a comment
There was a problem hiding this comment.
Thanks, LGTM
There are still some minor issues, but let's move on.
Build rdd-guest from rancher-desktop-daemon's cmd/rdd-guest and include it in the VM image. Add a systemd unit that starts it on WSL2 instances as part of rancher-desktop.target.
Related to: rancher-sandbox/rancher-desktop-daemon#341
and the following issue: rancher-sandbox/rancher-desktop-daemon#157