{"id":13819362,"url":"https://github.com/HenriWahl/docker-dhcpy6d","last_synced_at":"2025-05-16T04:33:29.765Z","repository":{"id":48040920,"uuid":"252813918","full_name":"HenriWahl/docker-dhcpy6d","owner":"HenriWahl","description":"Container for dhcpy6d","archived":false,"fork":false,"pushed_at":"2024-07-27T09:34:47.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-12T23:15:02.536Z","etag":null,"topics":["address","dhcpv6","ipv6","linux","mac","python","server"],"latest_commit_sha":null,"homepage":"https://github.com/HenriWahl/dhcpy6d","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HenriWahl.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":"2020-04-03T18:49:33.000Z","updated_at":"2024-07-27T09:34:50.000Z","dependencies_parsed_at":"2024-01-13T15:45:58.596Z","dependency_job_id":"f7e80dee-c5ec-4e91-bf0f-fdd7b90b2256","html_url":"https://github.com/HenriWahl/docker-dhcpy6d","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriWahl%2Fdocker-dhcpy6d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriWahl%2Fdocker-dhcpy6d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriWahl%2Fdocker-dhcpy6d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriWahl%2Fdocker-dhcpy6d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HenriWahl","download_url":"https://codeload.github.com/HenriWahl/docker-dhcpy6d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225405599,"owners_count":17469375,"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":["address","dhcpv6","ipv6","linux","mac","python","server"],"created_at":"2024-08-04T08:00:45.964Z","updated_at":"2024-11-19T18:31:49.377Z","avatar_url":"https://github.com/HenriWahl.png","language":"Dockerfile","funding_links":[],"categories":["server"],"sub_categories":[],"readme":"# docker-dhcpy6d\n\nDockerfile and related stuff for https://github.com/HenriWahl/dhcpy6d.\n\nBecause the main feature of *dhcpy6d* is its access to the requesting clients MAC addresses,\nit makes no sense to run inside an own container network.\n\n## How to use it\n\nThe work directory inside container is `/dhcpy6d` - the directory `dhcpy6d` is intended to be mounted as volume there.\nIt should at least contain the file `dhcpy6d.conf`, which has to be configured according to https://github.com/HenriWahl/dhcpy6d/blob/master/doc/dhcpy6d.conf.rst.\nFor a simple test run the network interface should be set.\n\nIf SQLite is choosen as storage for the client leases the delivered `/dhcpy6d/volatile.sqlite` might be used.\n\nAs mentioned above - most useful when being run with `--network host` parameter or `network_mode: host` in `docker-compose.yml` file.\nOtherwise there is no way the client MAC addresses could be transmitted.\n\n**Attention:** to really deliver addresses to clients the option `really_do_it` has to be set to `yes`.\nThis is a safety measure to avoid chaos - there still is plenty of it.\n\n### docker run\n\nA very simple call might be something like\n\n```\n# docker build -t dhcpy6d .\nSending build context to Docker daemon  197.1kB\n...\nSuccessfully tagged dhcpy6d:latest\n# docker run -dit --rm --name dhcpy6d --network host -v $PWD/dhcpy6d:/dhcpy6d dhcpy6d:latest\n2020-07-24 12:45:32,501 dhcpy6d INFO Starting dhcpy6d daemon...\n2020-07-24 12:45:32,501 dhcpy6d INFO Server DUID: 000100015f1ad7ec02006649e70d\n2020-07-24 12:45:32,510 dhcpy6d INFO Running as user dhcpy6d (UID 999) and group dhcpy6d (GID 999)\n2020-07-24 12:45:32,511 dhcpy6d INFO Listening on interfaces: eth0\n...\n```\n\n### docker-compose\n\nEven simpler is the use of `docker-compose`:\n\n```\n# docker-compose up\nBuilding dhcpy6d\n...\nCreating dhcpy6d ... done\nAttaching to dhcpy6d\ndhcpy6d    | 2020-07-24 12:46:59,366 dhcpy6d INFO Starting dhcpy6d daemon...\ndhcpy6d    | 2020-07-24 12:46:59,366 dhcpy6d INFO Server DUID: 000100015f1ad84302006649e70d\ndhcpy6d    | 2020-07-24 12:46:59,376 dhcpy6d INFO Running as user dhcpy6d (UID 999) and group dhcpy6d (GID 999)\ndhcpy6d    | 2020-07-24 12:46:59,382 dhcpy6d INFO Listening on interfaces: eth0\n...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHenriWahl%2Fdocker-dhcpy6d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHenriWahl%2Fdocker-dhcpy6d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHenriWahl%2Fdocker-dhcpy6d/lists"}