TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

docker2exe: Convert a Docker image to an executable

139 点作者 alexmolas3 天前

17 条评论

Epskampie1 天前
> Requirements on the executing device: Docker is required.
评论 #43913625 未加载
评论 #43912430 未加载
评论 #43912409 未加载
评论 #43912769 未加载
评论 #43912485 未加载
评论 #43912686 未加载
dennydai1 天前
Just use shebang<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38987109">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38987109</a><p>#!&#x2F;usr&#x2F;bin&#x2F;env -S bash -c &quot;docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2&gt;&amp;1 | tee &#x2F;dev&#x2F;stderr | grep -oP &#x27;sha256:[0-9a-f]*&#x27;)&quot;
评论 #43921376 未加载
评论 #43913138 未加载
rullopat1 天前
It&#x27;s great for sending your 6 GB hello world exe to your friends I suppose
评论 #43913369 未加载
rietta1 天前
I remember thinking that the Visual Basic runtime was unacceptable bloat overhead and now this. Cool work though. Also reminds me of self extracting WinZip files.
评论 #43915350 未加载
评论 #43922111 未加载
nine_k1 天前
Tired: docker run.<p>Wired: docker2exe.<p>Inspired: AppImage.<p>(I&#x27;ll show myself out.)
kkapelon1 天前
This is just a simpler wrapper over the docker executable that you need to have installed anyway.
cik1 天前
It sounds like docker export and makeself combined. We already ship to select customers prebuilt containers exactly this way.
arjav07031 天前
This is useful if you want to share your container (probably something that is prod ready) to someone who knows nothing about docker. An usecase would be, you built a custom software for someone&#x27;s business&#x2F;usecase and they are the only one using that particular container.
hda1111 天前
Why? Would be easier to embed both podman and the image in one executable to create a self-contained file. No docker needed.
fifilura1 天前
Docker is mostly backend, but I wonder how far we are from universally executable native applications?<p>I.e. download this linux&#x2F;mac&#x2F;windows application to your windows&#x2F;linux&#x2F;mac computer.<p>Double-click to run.<p>Seems like all bits and pieces are already there, just need to put them together.
评论 #43916407 未加载
评论 #43916138 未加载
评论 #43914883 未加载
评论 #43914698 未加载
评论 #43914893 未加载
ransom15381 天前
Ah finally. We have finished where we started.
评论 #43916736 未加载
isaacimagine1 天前
See also: dockerc<p><a href="https:&#x2F;&#x2F;github.com&#x2F;NilsIrl&#x2F;dockerc">https:&#x2F;&#x2F;github.com&#x2F;NilsIrl&#x2F;dockerc</a>
aussieguy12341 天前
On Linux, there would be little to no performance penalty to something like this since Docker is just fancy chroot, re using the same kernel as the host.<p>But not on other platforms. They are the same but run Linux in a VM.
sunrunner1 天前
I&#x27;m just as disappointed as I was when I first heard about being able to create &#x27;Self-contained Executable Programs with Deno Compile&#x27;, perhaps slightly more even as at least that bundled the interpreter.<p>In all seriousness, Docker as a requirement for end-users to create an executable seems like a &#x27;shift-right&#x27; approach to deployment effort, as in, instead of doing the work to make a usable standalone executable, a bunch of requirements for users are just pushed on to them. In some cases your users might be technical, but even then Docker only seems to makes sense when its kept inside an environment where the assumption of a container runtime is there.<p>I assume extra steps are needed to allow the &#x27;executable&#x27; to access filesystem resources, making it sandboxed but not in a way that&#x27;s helpful for end users?
评论 #43913260 未加载
评论 #43913245 未加载
PicassoCTs1 天前
So, does this work with a dockerswarm? As in a whole services swarm- get converted down into a monolith?
revskill1 天前
So baiscally i could bundle the linux os as an exe and run in windows.
评论 #43912836 未加载
Alex_0011 天前
This is super cool — especially for sharing tools with non-technical users or bundling CLIs without asking people to install Docker. Packaging infra-heavy apps into a simple .exe could really smooth out distribution. Curious how it handles startup time and embedded filesystem size.
评论 #43913519 未加载