Giter VIP home page Giter VIP logo

container-per-ip's Introduction

container-per-ip

Rust

Some thing so you can spin up a container per client ip

This works by spawning a new container based on the host address of a connecting client.

Concurrent tcp connections route to the same container, containers are removed when a timeout has elapsed since the last connection closed.

container-per-ip 
Ben Simms <[email protected]>
Run a container per client ip

USAGE:
    container-per-ip [OPTIONS] <IMAGE>

ARGS:
    <IMAGE>
            The docker image to run for each ip

OPTIONS:
    -b, --binds <BINDS>
            Volume bindings to provide to containers

    -e, --env <ENV>
            Environment variables to set on the child container

        --force-pull
            Always pull the image on start

    -h, --help
            Print help information

    -n, --network <NETWORK>
            Set the docker network containers should be started in

    -p, --ports <PORTS>
            Ports to listen on
            
            The supported syntax for ports is: udp:53, tcp:8080:80 (outside:inside), tcp:5000-5100
            (range), tcp:5000-5100:6000-6100 (outside range - inside range)

        --parent-id <PARENT_ID>
            Specifies the unique id set in the container-per-ip.parent tag of spawned containers.
            
            By default, containers will be tagged with `container-per-ip.parent = <uuid>`
            If specified, containers will be tagged with `container-per-ip.parent =
            <container_tag_suffix>`

        --privileged
            Should the containers be started with the `--privileged` flag

    -t, --timeout <TIMEOUT>
            Timeout (seconds) after an IPs last connection disconnects before killing the associated
            container
            
            [default: 300]

Running in docker

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --net=host -it nitros12/container-per-ip --help

container-per-ip's People

Contributors

simmsb avatar dependabot-preview[bot] avatar

Stargazers

jon โš avatar jic avatar

Watchers

 avatar

container-per-ip's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.