DEV Community

Discussion on: Use Multi-Stage Docker Builds For Statically-Linked Rust Binaries

 
deciduously profile image
Ben Lovy

I haven't tried yet, but my instinct tells me this is something Docker manages, not your containers. Like Moshe said, the Linux userland inside a container is explicitly for runtime needs of the container's internal commands, everything outside of that is handled by Docker itself.

Thread Thread
 
bretthancox profile image
bretthancox

Thanks. scratch feels like taking the training wheels off, but you have to do it at some point!

Thread Thread
 
qm3ster profile image
Mihail Malo

Afaik, scratch isn't "nothing", it just downloads nothing.
There's still stuff from the runtime when it's alive.