docker-library / official-images

Primary source of truth for the Docker "Official Images" program
https://hub.docker.com/u/library
Apache License 2.0
6.41k stars 2.33k forks source link

please explain what the different busybox images are #193

Closed SvenDowideit closed 9 years ago

SvenDowideit commented 9 years ago

and why its useful - ie, how and when a user should choose each of them - if there's no reason to choose one over another, please delete it.

tianon commented 9 years ago

ping @jpetazzo

jpetazzo commented 9 years ago

Where should I put the explanation?

yosifkit commented 9 years ago

Simplest way: make a busybox folder in docker-library/docs and put it in README-content.md (we are still working on the README for docker-library/docs itself). You can also put your short description (200 char plain text) in README-short.txt. We will use them to update the descriptions on the docker hub.

tianon commented 9 years ago

Or just comment here and we can copy it over :)

jpetazzo commented 9 years ago

OK. Basically, the difference is how the images are built.

The ubuntu ones are using the busybox static package from Ubuntu, adding a few support files so that they work, and there you go. It's super fast to build (a minute or even less).

The buildroot ones are goind the long way: they use buildroot to craft a whole filesystem, with busybox but also all required libraries and other support files. It has a stronger guarantee of "this will work", and is also smaller because it's using uclibc. However it takes forever to build (like, hours).

jpetazzo commented 9 years ago

Also, I'd like to add — having to totally different builders means that if one of them goes belly up, we can always fallback on the other. I believe that this is important, since we're talking about an image that ends up being used all over the place (and in... testing!)

yosifkit commented 9 years ago

Done!