Last active
May 8, 2024 20:42
-
-
Save mtbdeano/c2a2958b39c68badde32bc60a697e44f to your computer and use it in GitHub Desktop.
A small container to expose the rancher desktop docker socket on the localhost TCP port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --restart=always \ | |
-p 0.0.0.0:2375:2375 \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
alpine/socat \ | |
tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is magic stolen from rancher-sandbox/rancher-desktop#2304 (comment)