Get greener again ... reduce your waste of bytes (container wise)

Majority of people who create micro-services today, probably create them in a docker container.
While container is great, it has some hidden waste of bytes, since majority of the container you use take as minimum as 500mb (even for the simplest tool), basically because they are based on bloated base images

Luckily there is a solution, which surprising enough is simply by using a very small base containers which was created by

Their solution is to create a base set of containers for specific languages, which are based on Alphine linux distro.
Alphine distro also has a nice packaging infra, this will save you precious time during deployment.

The nice part is that you can shrink your container from above 600 mb  into a 5 mb micro container already created the following container to support below languages:

  1. Go
  2. Python
  3. Java
  4. Node
  5. PHP
  6. Ruby

* Side note, if you micro service container more than one language ... maybe its a huge service ...

The full article here

Thanks greencollarcrews for the cool picture!
Get greener again ... reduce your waste of bytes (container wise) Get greener again ... reduce your waste of bytes (container wise) Reviewed by Ran Davidovitz on 11:00 PM Rating: 5


Tomer Paz said...

or use CoreOS, or UniKernels... :)

Ran Davidovitz said...

Did you compare them to above solution ? (what is the benefit in using them)

Powered by Blogger.