This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
How to add the Shell into Chiseled Image for Troubleshooting #5228
Labels
You can continue the conversation there. Go to discussion →
Describe the Problem
Currently, we are utilizing standard Docker images for .NET Core and are considering transitioning to chiseled images. In our production environment, there are instances where we may need to get inside the container for troubleshooting purposes. How can we achieve similar capabilities with the distroless image? We are seeking the best approach to address this. Alternatively, is it feasible to incorporate a shell into the distroless image as needed?
Describe the Solution
We could employ separate Dockerfiles, one utilizing the chiseled image and the other the standard image, and adjust the Dockerfile based on the environment variable when troubleshooting is required. However, a drawback of this approach is the lack of consistency in using different images. Our preference is to maintain uniformity by continuing to use the same images rather than switching between different ones.
Additional Context
Current Image:
mcr.microsoft.com/dotnet/aspnet:8.0
Move to Image:
mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-extra
The text was updated successfully, but these errors were encountered: