https://github.com/NilsIrl/dockerc Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} NilsIrl / dockerc Public * Notifications * Fork 9 * Star 751 * container image to single executable compiler License GPL-3.0 license 751 stars 9 forks Branches Tags Activity Star Notifications * Code * Issues 9 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights NilsIrl/dockerc This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. trunk BranchesTags Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 19 Commits assets assets src src .gitattributes .gitattributes .gitignore .gitignore .gitmodules .gitmodules BUILD.md BUILD.md LICENSE LICENSE README.md README.md build.zig build.zig build.zig.zon build.zig.zon View all files Repository files navigation * README * GPL-3.0 license dockerc - compile docker images to standalone portable binaries No more Tweet No more docker run, no more pip install, no more npm i, just give your users executables they can run! Usage Install dockerc from the latest release. # Image from docker hub $ dockerc --image docker://oven/bun --output bun # Image in local docker daemon storage $ zig-out/bin/dockerc --image docker-daemon:mysherlock-image:latest --output sherlock_bin The output binary can then be called as you would with usual binaries. You can also specify -e, and -v in the same way you would when using docker run. Networked services running inside the container can be accessed directly without having to specify -p. Skopeo is used for loading images, for other locations refer to its documentation. Build from source $ zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl Features * [*] Compiler docker images into portable binaries * [*] Rootless containers * [ ] MacOS and Windows support (using QEMU) * [*] x86_64 support * [ ] arm64 support * [*] Supports arguments * [*] Supports specifying environment variables using -e * [*] Supports specifying volumes using -v * [ ] Support other arguments... About container image to single executable compiler Topics docker containers oci oci-image Resources Readme License GPL-3.0 license Activity Stars 751 stars Watchers 1 watching Forks 9 forks Report repository Releases 4 v0.2.1 Latest Mar 6, 2024 + 3 releases Languages * Zig 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.