{"id":20086932,"url":"https://github.com/neocrym/dind","last_synced_at":"2025-06-17T04:33:07.882Z","repository":{"id":139028289,"uuid":"342551290","full_name":"neocrym/dind","owner":"neocrym","description":"An Ubuntu-based Docker-in-Docker image with systemd.","archived":false,"fork":false,"pushed_at":"2022-02-18T12:19:58.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T14:08:36.971Z","etag":null,"topics":["docker","docker-in-docker"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/neocrym.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-02-26T11:11:55.000Z","updated_at":"2023-06-19T15:41:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed9b41cf-7425-42d5-a7d3-15adbfc2836e","html_url":"https://github.com/neocrym/dind","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"b4add703f40b9d4e6f7b0a6a8b3eecdb8a9be3a6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neocrym/dind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocrym%2Fdind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocrym%2Fdind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocrym%2Fdind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocrym%2Fdind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neocrym","download_url":"https://codeload.github.com/neocrym/dind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocrym%2Fdind/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260293588,"owners_count":22987591,"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":["docker","docker-in-docker"],"created_at":"2024-11-13T16:03:05.961Z","updated_at":"2025-06-17T04:33:07.844Z","avatar_url":"https://github.com/neocrym.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neocrym/dind -- An Ubuntu-based Docker-in-Docker image with systemd\n\nThis is a Docker installation based on Ubuntu. It installs systemd and Docker.\n\nThis image is used for running Docker containers via an isolated Docker daemon. This is useful for testing code that launches Docker containers without giving complete access to the Docker daemon on the host machine.\n\nIf you are fine with giving your code access to your host machine's Docker socket, you might instead consider binding your host's Docker socket into your container. Jérôme Petazzoni further in his [blog post](https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/) comparing Docker-in-Docker to bind-mounting the Docker socket.\n\n## Usage\n\nTo use this image, you will need to use the `--privileged` flag. Note that this effectively gives this container root access to your machine. At this time of writing, this container will not work on Docker Swarm because Swarm Mode does not support the `--privileged` flag for containers.\n\nYou should also mount `/run` and `/run/lock` as tmpfs mounts. The container's `/sys/fs/cgroup` should be a read-only mount to the same directory on the host. You should also create a Docker volume at `/var/lib/docker` to persist Docker state across container runs. Do not have multiple containers share this volume.\n\nThe Docker Compose for the above configuration looks like:\n\n```yaml\nversion: \"3.9\"\n\nservices:\n  dind:\n    image: jamesmishra/dind\n    privileged: true\n    volumes:\n      - type: tmpfs\n        target: /run\n      - type: tmpfs\n        target: /run/lock\n      - type: bind\n        source: /sys/fs/cgroup\n        target: /sys/fs/cgroup\n        read_only: true\n      - type: volume\n        source: dind_volume\n        target: /var/lib/docker\n\nvolumes:\n  dind_volume:\n```\n\n### Overriding the entrypoint\n\nIf you are creating a new image based on this image, you might want to override the image's entrypoint to run commands upon container startup.\n\nTo make sure that systemd starts, make sure your container entrypoint ends by exec-ing `/lib/systemd/systemd`. As a bash script, this looks like:\n\n```bash\n#!/bin/bash\necho \"Your code goes here.\"\nexec /lib/systemd/systemd\n```\n\n## Credits\n\nThis image takes heavy inspiration from [cruizba/ubuntu-dind](https://github.com/cruizba/ubuntu-dind), [docker/dind](https://hub.docker.com/_/docker) and [jrei/systemd-ubuntu](https://hub.docker.com/r/jrei/systemd-ubuntu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneocrym%2Fdind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneocrym%2Fdind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneocrym%2Fdind/lists"}