Skip to content

docs: debugging docker image with sidecar containers #4439

@steve-chavez

Description

@steve-chavez

This no-shell policy is far too draconian.

The same restriction also comes with "distroless" images. The benefits are clear in reduced size + improved security.

A common pattern to debug these type of images is to attach a sidecar container:

It seems simple enough (a single command) to attach an alpine container to get shell. I believe what we should for now is to document this practice.

Originally posted by @steve-chavez in #2243 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerdocsOnly related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions