Epskampie
8 days ago
> Requirements on the executing device: Docker is required.
arjvik
8 days ago
Good friend built dockerc[1] which doesn't have this limitation!
hnuser123456
8 days ago
That screenshot in the readme is hilarious. Nice project.
ecnahc515
8 days ago
Instead it requires QEMU!
remram
7 days ago
I can't tell what this does from the readme. Does it package a container runtime in the exe? Or a virtual machine? Something else?
vinceguidry
8 days ago
Looks like MacOS and Windows support is still being worked on.
ugh123
7 days ago
lol guy makes a fair point. Open source software suffers from this expectation that anyone interested in the project must be technical enough to be able to clone, compile, and fix the inevitable issues just to get something running and usable.
Hamuko
7 days ago
I'd say that a lot of people suffer from this expectation that just because I made a tool for myself and put it up on GitHub in case someone else would also enjoy it that I'm now obligated to provide support for you. Especially when the person in the screenshot is angry over the lack of a Windows binary.
dowager_dan99
7 days ago
Thank goodness; solving this "problem" for the general internet destroyed it. Your point seems to be someone else should do that for every stupid asshole on the web?
dheera
8 days ago
But will this run inside another docker container?
I normally hate things shipped as containers because I often want to use it inside a docker container and docker-in-docker just seems like a messy waste of resources.
vinceguidry
8 days ago
Docker in Docker is not a waste of resources, they just make the same container runtime the container is running on available to it. Really a better solution than a control plane like Kubernetes.
throwaway127482
7 days ago
Aren't you describing docker-out-of-docker rather than docker-in-docker?
remram
7 days ago
Docker is not emulation so there's no waste of resources.
rcfox
8 days ago
Doesn't podman get around a lot of those issues?
dheera
8 days ago
Aw hell, more band-aids because people don't want to get software distribution done right.
Can we please go back to the days of sudo dpkg -i foo.deb and then just /usr/bin/foo ?
harha_
8 days ago
Yeah, it feels like nothing but a little trick. Why would anyone want to actually use this? The exe simply calls docker, it can embed an image into the exe but even then it first calls docker to load the embedded image.
jve
8 days ago
I see a use case. The other day I wished that I could pack CLI commands as docker containers and execute them as CLI commands and get return codes.
I haven't tried this stuff, but maybe this is something in that direction.
lelanthran
8 days ago
> I see a use case. The other day I wished that I could pack CLI commands as docker containers and execute them as CLI commands and get return codes
I don't understand this requirement/specification; presumably this use-case will not be satisfied by a shell script, but I don't see how.
What are you wanting from this use-case that can't be done with a shell script?
lazide
8 days ago
Presumably, they don’t want to write/maintain a shell script wrapper for every time they want to do this, when they could use a tool which does it for them.
james_marks
8 days ago
An icon a non-technical user can click to run it.
matsemann
8 days ago
I do that for a lot of stuff. Got a bit annoyed with internal tools that was so difficult to set up (needed this exact version of global python, expected this and that to be in the path, constantly needed to be updated and then stuff broke again). So I built a docker image instead where everything is managed, and when I need to update or change stuff I can do it from a clean slate without affecting anything else on my computer.
To use it, it's basically just scripts loaded into my shell. So if I do "toolname command args" it will spin up the container, mount the current folder and some config folders some tools expect, forward some ports, then pass the command and args to the container which runs them.
99% of the time it works smooth. The annoying part is if some tool depends on some other tool on the host machine. Like for instance it wants to do some git stuff. I will then have to have git installed and my keys copied in as well for instance.
rzzzt
8 days ago
CoreOS had a toolbox container that worked similarly to the one you have (the Podman people took over its maintenance): https://github.com/containers/toolbox
endofreach
7 days ago
> my keys copied in as well for instance.
Tip: you could also forward your ssh agent. I remember it was a bit of a pain in the ass on macos and a windows WSL2 setup, but likely worth it for your setup.
johncs
8 days ago
Basically the same as Python’s zipapps which have some niche use cases.
Before zipapp came out I built superzippy to do it. Needed to distribute some python tooling to users in a university where everyone was running Linux in lab computers. Worked perfectly for it.
j45
8 days ago
Could be ease of use for end users who don't docker.
worldsayshi
8 days ago
But now you have two problems.
throwanem
8 days ago
The first of which can be p90 solved by "Okay, type 'apt install dash capital why docker return,' tell me what happens...okay, and 'docker dash vee' says...great! Now..."
Probably takes a couple minutes, maybe less if you've got a good fast distro mirror nearby. More if you're trying to explain it to a biologist - love those folks, they do great work, incredible parties, not always at home in the digital domain.
alumic
8 days ago
I was so blown away by the title and equally disappointed to discover this line.
Pack it in, guys. No magic today.
stingraycharles
8 days ago
Thank god there’s still this project that can build single executables that work on multiple OS’es, I’m still amazed by that level of magic.
cozyman
8 days ago
[flagged]
Hamuko
8 days ago
I feel like it's much easier to send a docker run snippet than an executable binary to my Docker-using friends. I usually try to include an example `docker run` and/or Docker Compose snippet in my projects too.
drawfloat
8 days ago
Is there any alternative way of achieving a similar goal (shipping a container to non technical customers that they can run as if it were an application)?
regularfry
8 days ago
It feels like there ought to be a way to wrap a UML kernel build with a container image. Never seen it done, but I can't think of an obvious reason why it wouldn't work.
mrbluecoat
8 days ago
See the dockerc comment above
user
8 days ago