{"id":23978500,"url":"https://github.com/simmsb/container-per-ip","last_synced_at":"2026-05-16T04:08:24.400Z","repository":{"id":38377561,"uuid":"223064278","full_name":"simmsb/container-per-ip","owner":"simmsb","description":"Some thing so you can spin up a container per client ip","archived":false,"fork":false,"pushed_at":"2023-11-10T00:31:22.000Z","size":154,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T08:18:51.648Z","etag":null,"topics":["autoscaling","docker","reverse-proxy","scaling"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simmsb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-11-21T01:47:00.000Z","updated_at":"2024-07-14T23:00:19.000Z","dependencies_parsed_at":"2025-01-12T02:03:36.641Z","dependency_job_id":null,"html_url":"https://github.com/simmsb/container-per-ip","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fcontainer-per-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fcontainer-per-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fcontainer-per-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simmsb%2Fcontainer-per-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simmsb","download_url":"https://codeload.github.com/simmsb/container-per-ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240540554,"owners_count":19817791,"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","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":["autoscaling","docker","reverse-proxy","scaling"],"created_at":"2025-01-07T08:18:24.939Z","updated_at":"2026-05-16T04:08:19.359Z","avatar_url":"https://github.com/simmsb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# container-per-ip\n\n![Rust](https://github.com/nitros12/container-per-ip/workflows/Rust/badge.svg)\n\nSome thing so you can spin up a container per client ip\n\nThis works by spawning a new container based on the host address of a connecting\nclient.\n\nConcurrent tcp connections route to the same container, containers are removed\nwhen a timeout has elapsed since the last connection closed.\n\n```\ncontainer-per-ip \nBen Simms \u003cben@bensimms.moe\u003e\nRun a container per client ip\n\nUSAGE:\n    container-per-ip [OPTIONS] \u003cIMAGE\u003e\n\nARGS:\n    \u003cIMAGE\u003e\n            The docker image to run for each ip\n\nOPTIONS:\n    -b, --binds \u003cBINDS\u003e\n            Volume bindings to provide to containers\n\n    -e, --env \u003cENV\u003e\n            Environment variables to set on the child container\n\n        --force-pull\n            Always pull the image on start\n\n    -h, --help\n            Print help information\n\n    -n, --network \u003cNETWORK\u003e\n            Set the docker network containers should be started in\n\n    -p, --ports \u003cPORTS\u003e\n            Ports to listen on\n            \n            The supported syntax for ports is: udp:53, tcp:8080:80 (outside:inside), tcp:5000-5100\n            (range), tcp:5000-5100:6000-6100 (outside range - inside range)\n\n        --parent-id \u003cPARENT_ID\u003e\n            Specifies the unique id set in the container-per-ip.parent tag of spawned containers.\n            \n            By default, containers will be tagged with `container-per-ip.parent = \u003cuuid\u003e`\n            If specified, containers will be tagged with `container-per-ip.parent =\n            \u003ccontainer_tag_suffix\u003e`\n\n        --privileged\n            Should the containers be started with the `--privileged` flag\n\n    -t, --timeout \u003cTIMEOUT\u003e\n            Timeout (seconds) after an IPs last connection disconnects before killing the associated\n            container\n            \n            [default: 300]\n```\n\n## Running in docker\n\n```\ndocker run --rm -v /var/run/docker.sock:/var/run/docker.sock --net=host -it nitros12/container-per-ip --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimmsb%2Fcontainer-per-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimmsb%2Fcontainer-per-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimmsb%2Fcontainer-per-ip/lists"}