You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove dependency on /bin/sh for moby-cli dependency graph #3811
I'd like to be able to install moby-cli in a distroless container environment without causing a shell to be included. The normal method in which I install packages for a distroless container is to install to a staging environment using the --installroot option of tdnf. That produces the file system I want for the distroless container.
The issue is that this the installation of moby-cli causes a shell to be included and thus end up in my distroless container. Not what I want.
This can be demonstrated roughly with this Dockerfile:
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 AS installer
RUN mkdir /staging \
&& tdnf install -y --releasever=2.0 --installroot /staging \
moby-cli \
&& tdnf clean all --releasever=2.0 --installroot /staging
FROM mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
COPY --from=installer /staging/ /
We could evaluate for future Major Release, but we won't be able to do it during the Mariner 2.0 lifetime, as we don't want to introduce new behavior/breaking changes.
Activity
eric-desrochers commentedon Dec 7, 2023
We could evaluate for future Major Release, but we won't be able to do it during the Mariner 2.0 lifetime, as we don't want to introduce new behavior/breaking changes.
Thanks for your feedbacks !