azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

busybox should install links in CBL-Mariner's debug distroless images

Open bureado opened this issue 3 years ago • 1 comments

The debug flavor of CBL-Mariner's distroless images ships busybox arguably to support interactive debugging.

However, links aren't installed in PATH so users can only use the image if they know how to call Busybox's functions (e.g., run -it ... 'busybox' 'sh' instead of the arguably more expected and natural run -it ... '/bin/sh')

One way to address this is to run busybox --install when creating the image. This is what's done in docker-library/busybox. Or perhaps declaring the appropriate ENTRYPOINT.

It's also possible this is by-design, but I couldn't find a reference to busybox install in Issues so it might be good to document it.

bureado avatar May 03 '22 23:05 bureado

This definitely threw me off. I was about to open a bug for the debug flavour before I found this issue.

OmegaVVeapon avatar Jul 04 '22 20:07 OmegaVVeapon

@mandeepsplaha for visibility.

eric-desrochers avatar Dec 06 '23 19:12 eric-desrochers

@bureado, Thank you for reaching out and sharing your insightful suggestion. We have made the appropriate updates to our documentation.

https://mcr.microsoft.com/en-us/product/cbl-mariner/distroless/debug/about docker run -it --rm mcr.microsoft.com/cbl-mariner/distroless/debug:2.0 busybox sh

And your request is being supported in our next major release.

Malateshk007 avatar Apr 29 '24 10:04 Malateshk007