# dockersocket

dockersocket is a self-hosted network services app. This is a security-enhanced proxy for the Docker Socket. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/9363/dockersocket

## Description

This is a security-enhanced proxy for the Docker Socket.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

60/100 (Good), based on 3 of 4 factors.
- Maintained: 75 (last commit 17 days ago)
- Popular: 69 (2,930 GitHub stars)
- Easy to install: 20 (1 install platform, Docker image)

## Links

- Unraid: https://ca.unraid.net/apps/app_4929d847f3a0cb96
- GitHub: https://github.com/Tecnativa/docker-socket-proxy

## Common questions

### How do I allow only the API endpoints my container needs?

Access to Docker API sections is controlled with environment variables that match the URL prefix (e.g. AUTH for /auth/*), set to 1 to grant or 0 to revoke access. By default only a safe minimal subset is granted, and you should revoke anything your service doesn't need.

### Why do I need to run the proxy with --privileged?

The container connects to the Docker socket, which is a privileged connection in some SELinux/AppArmor contexts and would get locked otherwise.

### Can I expose the proxy's port 2375 to other hosts on my network?

No. The port should never be exposed to a public network; only to a Docker network containing the proxy and the service that uses it. The proxy is plain HTTP with no TLS, so access must be restricted via Docker's built-in isolation.

### How does this work with Traefik or other reverse proxies?

You run the socket proxy as a separate container, mount the Docker socket into it, and let Traefik talk to it over that network. The proxy limits Traefik to only the API access it needs, greatly reducing its privileges.

### What happens when a container tries to use a blocked API call?

The proxy returns an HTTP 403 Forbidden response with the message 'Request forbidden by administrative rules' for any blocked request.

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