# 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/9058/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 5 days ago)
- Popular: 69 (2,909 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

### Do I need to run the proxy with special flags or mounts?

Yes, use --privileged and mount /var/run/docker.sock into the container because the Docker socket connection is privileged in some SELinux/AppArmor contexts.

### Should the proxy's published port be reachable from the public internet?

No, the documentation says never expose the container's port to a public network. Keep it only on Docker networks where the proxy and the service that uses it reside.

### How do I block or allow specific Docker API sections?

Set the API-section environment variables to 0 to revoke access or 1 to grant access. The variables normally match URL prefixes such as AUTH for the /auth/* parts of the API.

### Does the proxy add TLS for Docker API traffic?

No, the image does not include TLS support and provides a plain HTTP proxy to the host Docker Unix socket. You are expected to restrict access through Docker's built-in firewall.

### How do I make my local Docker CLI use the proxy?

Run the proxy with the host port bound to 127.0.0.1:2375 and set DOCKER_HOST so the Docker client uses localhost on port 2375.

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