{"id":18841984,"url":"https://github.com/ahmetozer/dind","last_synced_at":"2025-09-03T06:31:17.523Z","repository":{"id":136065529,"uuid":"283630276","full_name":"ahmetozer/dind","owner":"ahmetozer","description":"Docker in Docker with IPv6 support and also has a multi platform build option (buildx)","archived":false,"fork":false,"pushed_at":"2020-09-06T20:38:15.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T02:53:29.638Z","etag":null,"topics":["arm","build","buildx","container","container-builder","docker","docker-build-for-raspberrypi","docker-raspberrypi-builder","dockerbuild","ipv6","ipv6-automated","linux","ndp","network","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/ahmetozer/dind","language":"Shell","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/ahmetozer.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-07-30T00:25:18.000Z","updated_at":"2023-04-12T13:30:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"642cdde4-a1c5-4c03-a521-43e4310d04f3","html_url":"https://github.com/ahmetozer/dind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fdind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fdind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fdind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fdind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmetozer","download_url":"https://codeload.github.com/ahmetozer/dind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231848728,"owners_count":18435583,"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":["arm","build","buildx","container","container-builder","docker","docker-build-for-raspberrypi","docker-raspberrypi-builder","dockerbuild","ipv6","ipv6-automated","linux","ndp","network","raspberry-pi","raspberrypi"],"created_at":"2024-11-08T02:53:15.889Z","updated_at":"2024-12-30T10:51:25.713Z","avatar_url":"https://github.com/ahmetozer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker In Docker with Builx and IPv6\n\nSome times Docker in Docker is require for more organization or one time runs such as build container with Gitlab-ci.\nRegular dind is not support buildx and IPv6. This repository aim that these kind a problems.\n\nThis dind is require privileged mode.\n\nTo enable buildx, set env variable buildx is to yes.  \nIf main docker is configured with IPv6, dind container has a IPv6 detection system and system try to find and set IPv6.  \nYou can set IPv6 by manual with  set `ipv6` env variable to your IPv6 block\n\nBefore build command start docker service with `/src/start-docker.sh`\n\nExample gitlab-ci.yml from some project.\n\n```yml\ndocker-build:\n    variables:\n      buildx: \"yes\"\n    image: ahmetozer/dind:latest\n    stage: build\n    before_script:\n      - /src/start-docker.sh\n      - docker login -u \"ahmetozer\" -p \"$dhub\"\n    script:\n      - docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push -t ahmetozer/cors-proxy .\n    only:\n      - master\n```\n\nOverlay layer is more optimized for performance and disk space. So you can run your dind with mounting docker lib path to real ext4 path on disk.\n\n```bash\n#   Create directory for your dind containers\nmkdir -p /dind/dind1\n\ndocker run -it --rm --privileged -v /dind/dind1:/var/lib/docker ahmetozer/dind\n```\n\nExample gitlab-runner config.\n\n```toml\nconcurrent = 1\ncheck_interval = 0\n\n[session_server]\n  session_timeout = 1800\n  listen_address = \"[::]:8093\"\n\n[[runners]]\n  name = \"dind1\"\n  url = \"https://gitlab.com/\"\n  token = \"My_SECRET_TOKEN\"\n  executor = \"docker\"\n  [runners.custom_build_dir]\n  [runners.cache]\n    [runners.cache.s3]\n    [runners.cache.gcs]\n  [runners.docker]\n    tls_verify = false\n    image = \"alpine:latest\"\n    privileged = true\n    disable_entrypoint_overwrite = false\n    oom_kill_disable = false\n    disable_cache = false\n    volumes = [\"/cache\",\"/var/lib/docker/dind-overlay:/var/lib/docker:rw\"]\n    shm_size = 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetozer%2Fdind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetozer%2Fdind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetozer%2Fdind/lists"}