Skip to content

Instantly share code, notes, and snippets.

@namila007
Last active August 24, 2023 09:36
Show Gist options
  • Save namila007/002ca79470a85aa82662f3c9bdfc24ad to your computer and use it in GitHub Desktop.
Save namila007/002ca79470a85aa82662f3c9bdfc24ad to your computer and use it in GitHub Desktop.
docker wsl daemon expose
  1. docker run -d --restart=always -p 127.0.0.1:23750:2375 -v /var/run/docker.sock:/var/run/docker.sock alpine/socat tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock

  2. netsh interface portproxy add v4tov4 listenport=23750 listenaddress=<PUBLIC IP> connectaddress=127.0.0.1 connectport=23750 . PUBLIC-IP= local network IP

  3. firewall inbound rule to expose 23750 port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment