{"id":20828503,"url":"https://github.com/linuxserver/docker-socket-proxy","last_synced_at":"2026-03-11T16:06:35.511Z","repository":{"id":232085304,"uuid":"783333681","full_name":"linuxserver/docker-socket-proxy","owner":"linuxserver","description":"Proxy over your Docker socket to restrict which requests it accepts","archived":false,"fork":false,"pushed_at":"2025-10-28T23:56:00.000Z","size":292,"stargazers_count":197,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-29T01:26:13.534Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Tecnativa/docker-socket-proxy","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxserver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"linuxserver","open_collective":"linuxserver"}},"created_at":"2024-04-07T15:49:27.000Z","updated_at":"2025-10-28T23:49:56.000Z","dependencies_parsed_at":"2025-04-19T02:25:17.425Z","dependency_job_id":"c51f04fb-3f99-4bba-97aa-b93e001e18b7","html_url":"https://github.com/linuxserver/docker-socket-proxy","commit_stats":{"total_commits":92,"total_committers":28,"mean_commits":"3.2857142857142856","dds":0.7065217391304348,"last_synced_commit":"4d72efef673f74268aa30a39cc0b4ee205ac0299"},"previous_names":["linuxserver/docker-socket-proxy"],"tags_count":60,"template":false,"template_full_name":null,"purl":"pkg:github/linuxserver/docker-socket-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-socket-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-socket-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-socket-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-socket-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxserver","download_url":"https://codeload.github.com/linuxserver/docker-socket-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxserver%2Fdocker-socket-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-11-17T23:15:02.548Z","updated_at":"2026-03-11T16:06:35.505Z","avatar_url":"https://github.com/linuxserver.png","language":"Shell","readme":"\u003c!-- DO NOT EDIT THIS FILE MANUALLY --\u003e\n\u003c!-- Please read https://github.com/linuxserver/docker-socket-proxy/blob/main/.github/CONTRIBUTING.md --\u003e\n[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)\n\n[![Blog](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=Blog)](https://blog.linuxserver.io \"all the things you can do with our containers including How-To guides, opinions and much more!\")\n[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=Discord\u0026logo=discord)](https://discord.gg/YWrKVTn \"realtime support / chat with the community and the team.\")\n[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026logo=discourse)](https://discourse.linuxserver.io \"post on our community forum.\")\n[![Fleet](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=Fleet)](https://fleet.linuxserver.io \"an online web interface which displays all of our maintained images.\")\n[![GitHub](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=GitHub\u0026logo=github)](https://github.com/linuxserver \"view the source for all of our repositories.\")\n[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=Supporters\u0026logo=open%20collective)](https://opencollective.com/linuxserver \"please consider helping us by either donating or contributing to our budget\")\n\nThe [LinuxServer.io](https://linuxserver.io) team brings you another container release.\n\nFind us at:\n\n* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!\n* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.\n* [Discourse](https://discourse.linuxserver.io) - post on our community forum.\n* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.\n* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.\n* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget\n\n# [linuxserver/socket-proxy](https://github.com/linuxserver/docker-socket-proxy)\n\n[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Fsocket-proxy?color=94398d\u0026label-color=555555\u0026logo-color=ffffff\u0026style=for-the-badge\u0026package-type=docker)](https://scarf.sh/gateway/linuxserver-ci/docker/linuxserver%2Fsocket-proxy)\n[![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-socket-proxy.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026logo=github)](https://github.com/linuxserver/docker-socket-proxy)\n[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-socket-proxy.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026logo=github)](https://github.com/linuxserver/docker-socket-proxy/releases)\n[![GitHub Package Repository](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=GitHub%20Package\u0026logo=github)](https://github.com/linuxserver/docker-socket-proxy/packages)\n[![GitLab Container Registry](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=GitLab%20Registry\u0026logo=gitlab)](https://gitlab.com/linuxserver.io/docker-socket-proxy/container_registry)\n[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=linuxserver.io\u0026message=Quay.io)](https://quay.io/repository/linuxserver.io/socket-proxy)\n[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/socket-proxy.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=pulls\u0026logo=docker)](https://hub.docker.com/r/linuxserver/socket-proxy)\n[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/socket-proxy.svg?color=94398d\u0026labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026label=stars\u0026logo=docker)](https://hub.docker.com/r/linuxserver/socket-proxy)\n[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555\u0026logoColor=ffffff\u0026style=for-the-badge\u0026jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-socket-proxy%2Fjob%2Fmain%2F\u0026logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-socket-proxy/job/main/)\n\nThe Socket Proxy is a security-enhanced proxy which allows you to apply access rules to the Docker socket, limiting the attack surface for containers such as watchtower or Traefik that need to use it.\n\n![socket-proxy](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/docker-logo.png)\n\n## Supported Architectures\n\nWe utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).\n\nSimply pulling `lscr.io/linuxserver/socket-proxy:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.\n\nThe architectures supported by this image are:\n\n| Architecture | Available | Tag |\n| :----: | :----: | ---- |\n| x86-64 | ✅ | amd64-\\\u003cversion tag\\\u003e |\n| riscv64 | ✅ | riscv64-\\\u003cversion tag\\\u003e |\n| arm64 | ✅ | arm64v8-\\\u003cversion tag\\\u003e |\n| armhf | ❌ | |\n\n## Application Setup\n\nThis container is conceptually based on [https://github.com/Tecnativa/docker-socket-proxy](https://github.com/Tecnativa/docker-socket-proxy) and as such does not follow our usual container conventions. It *does not* support mods or custom scripts/services, or running as a user other than root (or the docker user in a rootless environment). It is designed to act as a drop-in replacement for the Tecnativa container.\n\nThe container should be run on the same docker network as the service(s) using it. Most containers that would normally connect to a mounted docker.sock can have their endpoint overridden using the `DOCKER_HOST` environment variable if they do not offer the option in their configuration; it should typically be pointed to `tcp://socket-proxy:2375`.\n\n* Never expose this container's port to a public network. It should be treated the same way you would treat the docker socket or TCP endpoint.\n* Revoke access to any API section that you consider your service should not need.\n* To see the versions of the API your Docker daemon and client support, use `docker version` and check the `API version`.\n* [Read the docs](https://docs.docker.com/engine/api/) for the API version you are using for an explanation of all the available endpoints.\n\n## Read-Only Operation\n\nThis image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).\n\n## Usage\n\nTo help you get started creating a container from this image you can either use docker compose or the docker cli.\n\n\u003e[!NOTE]\n\u003eUnless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.\n\n### docker compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))\n\n```yaml\n---\nservices:\n  socket-proxy:\n    image: lscr.io/linuxserver/socket-proxy:latest\n    container_name: socket-proxy\n    environment:\n      - ALLOW_START=0 #optional\n      - ALLOW_STOP=0 #optional\n      - ALLOW_RESTARTS=0 #optional\n      - ALLOW_PAUSE=0 #optional\n      - ALLOW_UNPAUSE=0 #optional\n      - AUTH=0 #optional\n      - BUILD=0 #optional\n      - COMMIT=0 #optional\n      - CONFIGS=0 #optional\n      - CONTAINERS=0 #optional\n      - DISABLE_IPV6=0 #optional\n      - DISTRIBUTION=0 #optional\n      - EVENTS=1 #optional\n      - EXEC=0 #optional\n      - IMAGES=0 #optional\n      - INFO=0 #optional\n      - LOG_LEVEL=info #optional\n      - NETWORKS=0 #optional\n      - NODES=0 #optional\n      - PING=1 #optional\n      - PLUGINS=0 #optional\n      - POST=0 #optional\n      - SECRETS=0 #optional\n      - SERVICES=0 #optional\n      - SESSION=0 #optional\n      - SWARM=0 #optional\n      - SYSTEM=0 #optional\n      - TASKS=0 #optional\n      - TZ=Etc/UTC #optional\n      - VERSION=1 #optional\n      - VOLUMES=0 #optional\n    volumes:\n      - /var/run/docker.sock:/var/run/docker.sock:ro\n    restart: unless-stopped\n    read_only: true\n    tmpfs:\n      - /run\n```\n\n### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))\n\n```bash\ndocker run -d \\\n  --name=socket-proxy \\\n  -e ALLOW_START=0 `#optional` \\\n  -e ALLOW_STOP=0 `#optional` \\\n  -e ALLOW_RESTARTS=0 `#optional` \\\n  -e ALLOW_PAUSE=0 `#optional` \\\n  -e ALLOW_UNPAUSE=0 `#optional` \\\n  -e AUTH=0 `#optional` \\\n  -e BUILD=0 `#optional` \\\n  -e COMMIT=0 `#optional` \\\n  -e CONFIGS=0 `#optional` \\\n  -e CONTAINERS=0 `#optional` \\\n  -e DISTRIBUTION=0 `#optional` \\\n  -e DISABLE_IPV6=0 `#optional` \\\n  -e EVENTS=1 `#optional` \\\n  -e EXEC=0 `#optional` \\\n  -e IMAGES=0 `#optional` \\\n  -e INFO=0 `#optional` \\\n  -e LOG_LEVEL=info `#optional` \\\n  -e NETWORKS=0 `#optional` \\\n  -e NODES=0 `#optional` \\\n  -e PING=1 `#optional` \\\n  -e PLUGINS=0 `#optional` \\\n  -e POST=0 `#optional` \\\n  -e SECRETS=0 `#optional` \\\n  -e SERVICES=0 `#optional` \\\n  -e SESSION=0 `#optional` \\\n  -e SWARM=0 `#optional` \\\n  -e SYSTEM=0 `#optional` \\\n  -e TASKS=0 `#optional` \\\n  -e TZ=Etc/UTC `#optional` \\\n  -e VERSION=1 `#optional` \\\n  -e VOLUMES=0 `#optional` \\\n  -v /var/run/docker.sock:/var/run/docker.sock:ro \\\n  --restart unless-stopped \\\n  --read-only \\\n  --tmpfs /run \\\n  lscr.io/linuxserver/socket-proxy:latest\n```\n\n## Parameters\n\nContainers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `\u003cexternal\u003e:\u003cinternal\u003e` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.\n\n| Parameter | Function |\n| :----: | --- |\n| `-e ALLOW_START=0` | `/containers/{id}/start` - **This option will work even if `POST=0`** |\n| `-e ALLOW_STOP=0` | `/containers/{id}/stop` - **This option will work even if `POST=0`** |\n| `-e ALLOW_RESTARTS=0` | `/containers/{id}/stop`, `/containers/{id}/restart`, and `/containers/{id}/kill` - **This option will work even if `POST=0`** |\n| `-e ALLOW_PAUSE=0` | `/containers/{id}/pause` - **This option will work even if `POST=0`** |\n| `-e ALLOW_UNPAUSE=0` | `/containers/{id}/unpause` - **This option will work even if `POST=0`** |\n| `-e AUTH=0` | `/auth` |\n| `-e BUILD=0` | `/build` |\n| `-e COMMIT=0` | `/commit` |\n| `-e CONFIGS=0` | `/configs` |\n| `-e CONTAINERS=0` | `/containers` |\n| `-e DISTRIBUTION=0` | `/distribution` |\n| `-e DISABLE_IPV6=0` | Set to `1` to prevent binding to the IPv6 interface for legacy systems that cannot support IPv6. |\n| `-e EVENTS=1` | `/events` |\n| `-e EXEC=0` | `/exec` \u0026 `/containers/{id}/exec` |\n| `-e IMAGES=0` | `/images` |\n| `-e INFO=0` | `/info` |\n| `-e LOG_LEVEL=info` | Possible values are: debug, info, notice, warning, err, crit, alert and emerg. Defaults to info. |\n| `-e NETWORKS=0` | `/networks` |\n| `-e NODES=0` | `/nodes` |\n| `-e PING=1` | `/_ping` |\n| `-e PLUGINS=0` | `/plugins` |\n| `-e POST=0` | When set to `0`, only `GET` and `HEAD` operations are allowed, making API access read-only. |\n| `-e SECRETS=0` | `/secrets` |\n| `-e SERVICES=0` | `/services` |\n| `-e SESSION=0` | `/session` |\n| `-e SWARM=0` | `/swarm` |\n| `-e SYSTEM=0` | `/system` |\n| `-e TASKS=0` | `/tasks` |\n| `-e TZ=Etc/UTC` | `Set container timezone` |\n| `-e VERSION=1` | `/version` |\n| `-e VOLUMES=0` | `/volumes` |\n| `-v /var/run/docker.sock:ro` | Mount the host docker socket into the container. |\n| `--read-only` | Make the container filesystem read-only. |\n| `--tmpfs /run` | Mount /run to tmpfs (RAM) to make it writeable. |\n\n## Support Info\n\n* Shell access whilst the container is running:\n\n```bash\ndocker exec -it socket-proxy /bin/sh\n```\n\n* To monitor the logs of the container in realtime:\n\n```bash\ndocker logs -f socket-proxy\n```\n\n* Container version number:\n\n```bash\ndocker inspect -f '{{ index .Config.Labels \"build_version\" }}' socket-proxy\n```\n\n* Image version number:\n\n```bash\ndocker inspect -f '{{ index .Config.Labels \"build_version\" }}' lscr.io/linuxserver/socket-proxy:latest\n```\n\n## Updating Info\n\nMost of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.\n\nBelow are the instructions for updating containers:\n\n### Via Docker Compose\n\n* Update images:\n  * All images:\n\n  ```bash\n  docker compose pull\n  ```\n\n  * Single image:\n\n  ```bash\n  docker compose pull socket-proxy\n  ```\n\n* Update containers:\n  * All containers:\n\n  ```bash\n  docker compose up -d\n  ```\n\n  * Single container:\n\n  ```bash\n  docker compose up -d socket-proxy\n  ```\n\n* You can also remove the old dangling images:\n\n```bash\ndocker image prune\n```\n\n### Via Docker Run\n\n* Update the image:\n\n```bash\ndocker pull lscr.io/linuxserver/socket-proxy:latest\n```\n\n* Stop the running container:\n\n```bash\ndocker stop socket-proxy\n```\n\n* Delete the container:\n\n```bash\ndocker rm socket-proxy\n```\n\n* You can also remove the old dangling images:\n\n```bash\ndocker image prune\n```\n\n### Image Update Notifications - Diun (Docker Image Update Notifier)\n\n\u003e[!TIP]\n\u003eWe recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.\n\n## Building locally\n\nIf you want to make local modifications to these images for development purposes or just to customize the logic:\n\n```bash\ngit clone https://github.com/linuxserver/docker-socket-proxy.git\ncd docker-socket-proxy\ndocker build \\\n  --no-cache \\\n  --pull \\\n  -t lscr.io/linuxserver/socket-proxy:latest .\n```\n\nThe ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/docker-qemu-static`\n\n```bash\ndocker run --rm --privileged lscr.io/linuxserver/docker-qemu-static --reset\n```\n\nOnce registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.\n\n## Versions\n\n* **24.02.26:** - Add `ALLOW_PAUSE` and `ALLOW_UNPAUSE`.\n* **26.12.25:** - Rebase to Alpine 3.23.\n* **19.08.25:** - Add tzdata for localised logging timestamps.\n* **03.06.25:** - Rebase to Alpine 3.22. Add RISCV support.\n* **08.04.25:** - Add `LOG_LEVEL` back.\n* **06.04.25:** - Switch back to haproxy for better handling of `docker exec` connection hijacking.\n* **02.01.25:** - Support custom read timeout values.\n* **05.12.24:** - Rebase to Alpine 3.21.\n* **26.08.24:** - Change `ALLOW_START`, `ALLOW_STOP`, and `ALLOW_RESTARTS` to work even with `POST=0`.\n* **24.05.24:** - Rebase to Alpine 3.20.\n* **15.04.24:** - Allow disabling IPv6 support for legacy devices.\n* **08.04.24:** - Use nginx due to haproxy's wonky websockets handling.\n* **07.04.24:** - Initial Release.\n","funding_links":["https://github.com/sponsors/linuxserver","https://opencollective.com/linuxserver"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxserver%2Fdocker-socket-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxserver%2Fdocker-socket-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxserver%2Fdocker-socket-proxy/lists"}