News for hackers. Stuff that matters.
Re:Show HN: dockerc – Docker image to static executable "com... by FooBarWidget on Thursday March 07, 2024 @04:03AM (#39626802)
It's interesting. According to the source code, it uses FUSE to mount the container's internal filesystem. This means that the compiled binary will either need root privileges to run, or the user must have configured FUSE to allow non-root mounting. Not ideal, but there's not much of an alternative either.
Re:Show HN: dockerc – Docker image to static executable "com... by NilsIRL on Thursday March 07, 2024 @07:25AM (#39628211)
I thought it was an acceptable trade-off given that AppImage has the same limitation.

An alternative is to extract the image to disk but that has quite a bit of overhead.