News for hackers. Stuff that matters.
Re:A 1 KB Docker Container by ttwwmm on Friday September 29, 2017 @03:06AM (#15363352)
If you want to reduce the size more, try emitting a single layer as a tarball which you can pipe to docker load. That will reduce your layer count to one, plus you can omit a bunch of the metadata that Docker includes when you build from a Dockerfile (it doesn't seem to care at runtime).

https://github.com/moby/moby/blob/master/image/spec/v1.md

Re:A 1 KB Docker Container by raesene6 on Friday September 29, 2017 @03:32AM (#15363441)
Indeed.

Another useful technique, which has been recently introduced, is Multi-Stage Builds https://docs.docker.com/engine/userguide/eng-image/multistag... . This lets you avoid putting tools needed for compilation into the final image.