{"id":16747118,"url":"https://github.com/selfup/dkr","last_synced_at":"2025-03-16T02:23:33.008Z","repository":{"id":71266516,"uuid":"267445130","full_name":"selfup/dkr","owner":"selfup","description":"dkr is docker but for docker containers?","archived":false,"fork":false,"pushed_at":"2021-03-31T12:52:39.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T05:13:12.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/selfup.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-05-27T23:13:19.000Z","updated_at":"2024-06-19T10:06:07.910Z","dependencies_parsed_at":null,"dependency_job_id":"4d47d5c4-8edb-4aee-b885-9dd02a8ba405","html_url":"https://github.com/selfup/dkr","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/selfup%2Fdkr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Fdkr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Fdkr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Fdkr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selfup","download_url":"https://codeload.github.com/selfup/dkr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814979,"owners_count":20352077,"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":[],"created_at":"2024-10-13T02:09:09.719Z","updated_at":"2025-03-16T02:23:32.077Z","avatar_url":"https://github.com/selfup.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dkr\n\nDocker for Docker containers?\n\nThis project was inspired by [Liz Rice](https://www.lizrice.com/)\n\n### deps\n\n1. go ([golang](https://golang.org/))\n1. `./scripts/fs.sh` (this pulls minirootfs)\n\n### build\n\n`./scripts/build.sh`\n\n### boot container host\n\n`docker-compose up --build`\n\n### run dkr in container host\n\n`docker-compose exec --privileged dkr ./dkr run /bin/sh`\n\nHere you will be in a shell.\n\nExample of hostname manipulation of dkr container instead of the docker container:\n\n```\ndkr $ docker-compose exec --privileged dkr ./dkr run /bin/sh\n2020/05/27 23:49:24 run() executing [/bin/sh]\n2020/05/27 23:49:24 fork() executing [/bin/sh]\n/ # hostname\nf60818cfd391\n/ # hostname dkr\n/ # hostname\ndkr\n/ # exit\ndkr $ docker-compose exec --privileged dkr ./dkr run /bin/sh\n2020/05/27 23:51:17 run() executing [/bin/sh]\n2020/05/27 23:51:17 fork() executing [/bin/sh]\n/ # hostname\nf60818cfd391\n/ #\n```\n\nSee how the running `docker-compose up --build` continainer still has the same hostname?\n\nYea we did it!!\n\n### linux\n\nIf you are already on linux just:\n\n```bash\n# pulls minitrootfs\n./scripts/fs.sh\n# builds dkrd and dkr linux bins\n./scripts/build.sh\n\nsudo MINIROOTFS_HOME=$(pwd) ./dkr /bin/bash\n```\n\n### license\n\nThis project is MIT licensed. Please check the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfup%2Fdkr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselfup%2Fdkr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfup%2Fdkr/lists"}