Skip to main content

“Distroless” Docker Image

✍ Last Updated : November 25, 2022

🚪 Prequisite Knowledge (Optional)

Describe Initial Knowledge that reader need to know before reading this article

[Containerization / Docker](Containerization Docker 2e0ce73ff63b419d9e2782d79c4cc440.md)

❓ Key Question / Problem / Issue

Describe what question / Problem / Issue this knowledge should answer

  1. what is distroless docker image
  2. what benefit does it have ?
  3. how can i implement it ?

✅ Expected Output/Definition of Done

Define what information you really need and the definition of done

Quick Guideline on what distroless is and how to implement and any caveat on it’s implementation

🎁 Resulting Solution

Write writing results below

GitHub - GoogleContainerTools/distroless: 🥑 Language focused docker images, minus the operating system.

  1. Distroless can reduce headless server size by removing all unnecessary library of an operating system
  2. by removing most of it’s library distroless image are stripped of most functionality most os have including package manager.
  3. distroless shouldn’t be added additional capability as it defeats the purpose of it’s library stripping
  4. you can adjust you application to be able to run on distroless image. or find other distroless image that can suits your needs

Sample Unity Headless Implementation

Sign in

it requires Unity Project to be build in il2cpp as distroless don’t have mono nor other .net library or maybe you could find distroless that have c# library left in it.