[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73438":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},73438,"dockerc","NilsIrl\u002Fdockerc","NilsIrl","container image to single executable compiler","",null,"Zig",4908,105,19,25,0,6,7,9,18,74.48,"GNU General Public License v3.0",false,"trunk",true,[27,28,29,30],"containers","docker","oci","oci-image","2026-06-12 04:01:09","# dockerc - compile docker images to standalone portable binaries\n\nNo more [![Tweet](.\u002Fassets\u002Fpost.png)][4]\n\nNo more `docker run`, no more `pip install`, no more `npm i`, just give your users executables they can run!\n\n\n## Usage\n\nInstall dockerc from the [latest release](https:\u002F\u002Fgithub.com\u002FNilsIrl\u002Fdockerc\u002Freleases).\n\n\n```\n# Image from docker hub\n$ dockerc --image docker:\u002F\u002Foven\u002Fbun --output bun\n# Image in local docker daemon storage\n$ dockerc --image docker-daemon:mysherlock-image:latest --output sherlock_bin\n# Specify target instruction set architecture\n$ dockerc --image docker:\u002F\u002Fhello-world --arch arm64 --output hello\n```\n\nThe output binary can then be called as you would with usual binaries. You can\nalso specify `-e`, and `-v` in the same way you would when using `docker run`.\nNetworked services running inside the container can be accessed directly without\nhaving to specify `-p`.\n\nSkopeo is used for loading images, for other locations refer to [its documentation][1].\n\n## Build from source\n\nPlease note that this project uses Git submodules. If you clone this repository, you may need to run the following commands to initialize and update the submodules:\n\n```\n$ git submodule init\n$ git submodule update\n```\n\nThis will ensure that you download and update all relevant submodule contents.\n\ndockerc uses a patched version of the zig compiler than can be found on the\n[nils-dockerc-version branch][5] of the NilsIrl\u002Fzig repository. There is an\n[open PR][6] for the patch to be included in upstream zig.\n\nTo compile dockerc use the following commands:\n\n```\n$ zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl\n$ zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-linux-musl\n```\n\n## Features\n\n- [X] Compile docker images into portable binaries\n- [X] Rootless containers\n- [ ] MacOS and Windows support (using QEMU)\n- [X] x86_64 support\n- [X] arm64 support\n- [X] Supports arguments\n- [X] [Supports specifying environment variables using `-e`][2]\n- [X] [Supports specifying volumes using `-v`][3]\n- [ ] Support other [arguments][0]...\n\n[0]: https:\u002F\u002Fdocs.docker.com\u002Fengine\u002Freference\u002Fcommandline\u002Fcontainer_run\u002F\n[1]: https:\u002F\u002Fgithub.com\u002Fcontainers\u002Fskopeo\u002Fblob\u002Fmain\u002Fdocs\u002Fskopeo.1.md#image-names\n[2]: https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fcontainer\u002Frun\u002F#env\n[3]: https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fcontainer\u002Frun\u002F#volume\n[4]: https:\u002F\u002Fwww.reddit.com\u002Fr\u002Fgithub\u002Fcomments\u002F1at9br4\u002Fi_am_new_to_github_and_i_have_lots_to_say\u002F\n[5]: https:\u002F\u002Fgithub.com\u002FNilsIrl\u002Fzig\u002Ftree\u002Fnils-dockerc-version\n[6]: https:\u002F\u002Fgithub.com\u002Fziglang\u002Fzig\u002Fpull\u002F21092\n","dockerc 是一个将 Docker 镜像编译成独立可执行文件的工具。其核心功能是将容器镜像转换为可以直接运行的二进制文件，支持常见的Docker命令参数如环境变量指定（-e）和卷挂载（-v），并且可以在不依赖于Docker运行时的情况下直接执行这些生成的二进制文件。该项目基于Zig语言开发，利用了Skopeo来加载镜像，并且支持x86_64与arm64架构。它非常适合需要分发预配置软件环境但又希望避免安装Docker或处理复杂依赖关系的应用场景，比如在边缘计算节点部署应用、简化CI\u002FCD流程中的测试步骤等。",2,"2026-06-11 03:45:32","high_star"]