# Socket Proxy

Socket Proxy is a self-hosted development app. A lightweight, secure-by-default Unix socket proxy that safely mediates access to a restricted socket, originally created to expose the Docker socket to Traefik for homelab and container administrators. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6291/socket-proxy

## Description

A lightweight, secure-by-default Unix socket proxy that safely mediates access to a restricted socket, originally created to expose the Docker socket to Traefik for homelab and container administrators.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

71/100 (Good), based on 3 of 4 factors.
- Maintained: 100 (last commit 28 days ago)
- Popular: 53 (468 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/wollomatic/socket-proxy
- GitHub: https://github.com/wollomatic/socket-proxy

## Common questions

### Do I need to mount the Docker socket for the proxy to work?

Yes. Run the proxy with /var/run/docker.sock mounted so it can talk to Docker. Without that mount, it has no way to communicate with Docker.

### Should I expose port 2375 to the network?

No. Bind 2375 to 127.0.0.1 or a specific internal IP instead of publishing it on all interfaces. Exposing it can let anyone on the network control your Docker containers.

### How do I allow another container to start or stop containers through the proxy?

Add the flags CONTAINERS=1, ALLOW_START=1, ALLOW_STOP=1, and POST=1 when starting the proxy. Without the right flags, start/stop requests can be denied.

---
Source: Our Local Host (https://ourlocalhost.com/app/6291/socket-proxy), the self-hosted and open-source app directory.
