Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/slonopotamus/docker-wsl-proxy

🚢 docker-wsl-proxy allows connecting from Windows to Docker running in WSL2
https://github.com/slonopotamus/docker-wsl-proxy

containers docker windows wsl wsl2

Last synced: 22 days ago
JSON representation

🚢 docker-wsl-proxy allows connecting from Windows to Docker running in WSL2

Awesome Lists containing this project

README

        

= docker-wsl-proxy
Marat Radchenko
:slug: slonopotamus/docker-wsl-proxy
:uri-project: https://github.com/{slug}
:uri-ci: {uri-project}/actions?query=branch%3Amain

image:{uri-project}/workflows/CI/badge.svg?branch=main[Build Status,link={uri-ci}]
image:https://img.shields.io/github/release/{slug}.svg[Download,link={uri-project}/releases/latest]

**This repo is deprecated. docker-wsl-proxy was a helper binary for Stevedore WSL2 support. Other tools like Rancher Desktop have their own similar implementations.**

== Overview

docker-wsl-proxy allows connecting from Windows to Docker running in WSL2.

There are several important aspects of this task:

- Tunnelling Docker API calls _into_ WSL2
- Conversion of Windows paths to their WSL equivalents

== Usage

. Install `socat` in WSL2
. Run `dockerd` inside WSL2
. Run `docker-wsl-proxy.exe -c wsl:///var/run/docker.sock`
. Run Docker commands on Windows host

== Building from source

. https://go.dev/doc/install[Install Go]
. Clone docker-wsl-proxy Git repository
. Run `go build` in repository root
. Now you have ready-to-use `docker-wsl-proxy.exe`

You can also use `go run docker-wsl-proxy.go` to build & run in one step.