You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used docker-socket-proxy to allow my Mac OS to access a windows Docker Desktop with WSL2 installation as I was unable to get the Docker Desktop (Windows) to accept a daemon.json configuration to allow access to an external Port (0.0.0.0:2375) in my home network.
In the end I created a rough all-access.env file initially... which I then modified with some assistance from Github Copilot (which btw brought up some issues (e.g POST=1 will allow all non-GET/non-POST verbs) which might bear looking into)
all-access.env:
# Socket HAProxy will connect to (unix socket is recommended)
# SOCKET_PATH=unix@/var/run/docker.sock
# Where HAProxy will listen. 0.0.0.0:2375 exposes the proxy on all interfaces (dangerous).
# BIND_CONFIG=0.0.0.0:2375
# Logging
LOG_LEVEL=info
# Allow non-GET methods (POST/PUT/DELETE/etc)
POST=1
# Allow all endpoint groups
ALLOW_RESTARTS=1
ALLOW_START=1
ALLOW_STOP=1
AUTH=1
BUILD=1
COMMIT=1
CONFIGS=1
CONTAINERS=1
DISTRIBUTION=1
EVENTS=1
EXEC=1
GRPC=1
IMAGES=1
INFO=1
NETWORKS=1
NODES=1
PING=1
PLUGINS=1
SECRETS=1
SERVICES=1
SESSION=1
SWARM=1
SYSTEM=1
TASKS=1
VERSION=1
VOLUMES=1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used docker-socket-proxy to allow my Mac OS to access a windows Docker Desktop with WSL2 installation as I was unable to get the Docker Desktop (Windows) to accept a daemon.json configuration to allow access to an external Port (0.0.0.0:2375) in my home network.
In the end I created a rough
all-access.envfile initially... which I then modified with some assistance from Github Copilot (which btw brought up some issues (e.g POST=1 will allow all non-GET/non-POST verbs) which might bear looking into)all-access.env:
Beta Was this translation helpful? Give feedback.
All reactions