{"id":18746088,"url":"https://github.com/fscm/docker-docker","last_synced_at":"2026-05-02T18:35:49.658Z","repository":{"id":202050198,"uuid":"277883266","full_name":"fscm/docker-docker","owner":"fscm","description":"Docker recipe to build a Docker in Docker image","archived":false,"fork":false,"pushed_at":"2022-01-03T15:58:26.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T03:01:51.554Z","etag":null,"topics":["dind","docker","docker-compose","docker-image","docker-in-docker","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/fscm.png","metadata":{"files":{"readme":"README.build.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2020-07-07T17:40:16.000Z","updated_at":"2024-03-07T12:52:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"243164d3-b3e7-4305-8f62-ff746aab9273","html_url":"https://github.com/fscm/docker-docker","commit_stats":null,"previous_names":["fscm/docker-docker"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fscm/docker-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fscm","download_url":"https://codeload.github.com/fscm/docker-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281418351,"owners_count":26497777,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dind","docker","docker-compose","docker-image","docker-in-docker","dockerfile"],"created_at":"2024-11-07T16:20:51.989Z","updated_at":"2025-10-28T10:06:10.230Z","avatar_url":"https://github.com/fscm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker in Docker\n\nDocker image with Docker.\n\n## Synopsis\n\nThis script will create a Docker image with Docker installed and with all\nof the required initialization scripts.\n\nThe Docker image resulting from this script should be the one used to\ninstantiate a Docker daemon.\n\n## Getting Started\n\nThere are a couple of things needed for the script to work.\n\n### Prerequisites\n\nDocker, either the Community Edition (CE) or Enterprise Edition (EE), needs to\nbe installed on your local computer.\n\n#### Docker\n\nDocker installation instructions can be found\n[here](https://docs.docker.com/install/).\n\n### Usage\n\nIn order to create a Docker image using this Dockerfiles you need to run the\n`docker` command with a few options.\n\n```shell\ndocker image build --force-rm --no-cache --quiet --file \u003cVARIANT\u003e/Dockerfile --tag \u003cUSER\u003e/\u003cIMAGE\u003e:\u003cTAG\u003e \u003cPATH\u003e\n```\n\n* `\u003cUSER\u003e` - *[required]* The user that will own the container image (e.g.: \"johndoe\").\n* `\u003cIMAGE\u003e` - *[required]* The container name (e.g.: \"docker\").\n* `\u003cTAG\u003e` - *[required]* The container tag (e.g.: \"latest\").\n* `\u003cPATH\u003e` - *[required]* The location of the Dockerfile folder.\n* `\u003cVARIANT\u003e` - *[required]* The variant that is being build (`centos` or `debian`).\n\nA build example:\n\n```shell\ndocker image build --force-rm --no-cache --quiet --file debian/Dockerfile --tag johndoe/my_docker:debian .\n```\n\nTo clean any _`none`_ image(s) left by the build process the following\ncommand can be used:\n\n```shell\ndocker image rm `docker image ls --filter \"dangling=true\" --quiet`\n```\n\nYou can also use the following command to achieve the same result:\n\n```shell\ndocker image prune -f\n```\n\n### Add Tags to the Docker Image\n\nAdditional tags can be added to the image using the following command:\n\n```shell\ndocker image tag \u003cimage_id\u003e \u003cuser\u003e/\u003cimage\u003e:\u003cextra_tag\u003e\n```\n\n### Push the image to Docker Hub\n\nAfter adding an image to Docker, that image can be pushed to a Docker\nregistry... Like Docker Hub.\n\nMake sure that you are logged in to the service.\n\n```shell\ndocker login\n```\n\nWhen logged in, an image can be pushed using the following command:\n\n```shell\ndocker image push \u003cuser\u003e/\u003cimage\u003e:\u003ctag\u003e\n```\n\nExtra tags can also be pushed.\n\n```shell\ndocker image push \u003cuser\u003e/\u003cimage\u003e:\u003cextra_tag\u003e\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request\n\nPlease read the [CONTRIBUTING.md](CONTRIBUTING.md) file for more details on how\nto contribute to this project.\n\n## Versioning\n\nThis project uses [SemVer](http://semver.org/) for versioning. For the versions\navailable, see the [tags on this repository](https://github.com/fscm/docker-docker/tags).\n\n## Authors\n\n* **Frederico Martins** - [fscm](https://github.com/fscm)\n\nSee also the list of [contributors](https://github.com/fscm/docker-docker/contributors)\nwho participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE)\nfile for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffscm%2Fdocker-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffscm%2Fdocker-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffscm%2Fdocker-docker/lists"}