{"id":22246207,"url":"https://github.com/jpbaking/docker-in-docker","last_synced_at":"2026-02-27T05:04:06.182Z","repository":{"id":144051668,"uuid":"217864760","full_name":"jpbaking/docker-in-docker","owner":"jpbaking","description":"Ubuntu w/ Docker-in-Docker | Plus: OpenSSH, AWS EKS CLI, Kubernetes CLI, Helm, etc. ","archived":false,"fork":false,"pushed_at":"2019-10-27T14:44:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T12:02:29.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jpbaking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-10-27T14:11:19.000Z","updated_at":"2019-10-27T14:44:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"da407914-82a8-4046-9639-334b8c5ff6da","html_url":"https://github.com/jpbaking/docker-in-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jpbaking/docker-in-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Fdocker-in-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Fdocker-in-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Fdocker-in-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Fdocker-in-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpbaking","download_url":"https://codeload.github.com/jpbaking/docker-in-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Fdocker-in-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29885800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"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":[],"created_at":"2024-12-03T05:26:38.756Z","updated_at":"2026-02-27T05:04:06.166Z","avatar_url":"https://github.com/jpbaking.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ubuntu w/ Docker-in-Docker\n\nVery similar to official Docker \"dind\" (https://hub.docker.com/_/docker). But with the following included:\n\n* OpenSSH Client \u0026 Server\n* Amazon Web Services (AWS) CLI\n* AWS Elastic Kubernetes Service (EKS) CLI\n* Helm w/ Tiller _(binaries)_\n* Python 2 \u0026 3 (w/ pip \u0026 pip3)\n* Homebrew (linuxbrew) _[link](https://docs.brew.sh/Homebrew-on-Linux)_\n* SDKMAN! _[link](https://sdkman.io/)_\n\nAnd many more! :D\n\n# How to use?\n\n## As a Quickie SandBox (Transient/Temporary)\n\n```bash\ndocker run -it --rm --privileged jpbaking/docker-in-docker\n```\n\nThe container and volume/s will be deleted soon as you exit (from bash).\n\n## As a Service/Server\n\nThis can serve as isolated environment for developers.\n\n[![VideoDemo](https://i.imgur.com/cM0SJrt.png)](https://www.youtube.com/watch?v=wPr0K4Zw7k4)\n\nWatch the demonstration: [https://www.youtube.com/watch?v=wPr0K4Zw7k4](https://www.youtube.com/watch?v=wPr0K4Zw7k4)\n\n### First, docker run\n\nRun the container with `--detach` and `--privileged`.\n\n```bash\ndocker run --name the-dind --publish 22222:22 \\\n    --detach --privileged jpbaking/docker-in-docker\n```\n\nName the container however you want to, and set the published SSH port to your preference\n\n### Second, get into the shell\n\n#### Option #1: bash --login\n\n```bash\ndocker exec -it the-dind bash --login\n```\n\n**[IMPORTANT]** The `--login` is necessary for bash profiles to be loaded, so environment for CLI tools would be set (to work)!\n\n#### Option #2: ssh\n\n```bash\nssh -p 22222 ubuntu@127.0.0.1\n# password is \"ubuntu\" without the quotes :P\n```\n\nYou may even login to it remotely! Just replace localhost (127.0.0.1) with your docker host's IP/s.\n\n# Volumes/Persistence\n\n```bash\ndocker run --name the-dind --publish 22222:22 \\\n    --volume ${HOME}/.docker-in-docker:/var/lib/docker \\\n    --detach --privileged jpbaking/docker-in-docker\n```\n\nJust be sure to mount `/var/lib/docker` to something.\n\n# License\n\nCopyright 2019 Joseph Baking (josephbaking.ph@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbaking%2Fdocker-in-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpbaking%2Fdocker-in-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbaking%2Fdocker-in-docker/lists"}