Skip to main content

What is the role of Docker’s shim process?

Senior Docker
Quick Answer The container shim (containerd-shim) is a small process that acts as the parent of the container process. It sits between dockerd/containerd and runc. When dockerd restarts, the shim keeps the container running and reconnects. It also collects the container's exit code and relays I/O streams. One shim per container.

Answer

Shim keeps containers alive when dockerd exits and handles STDIO pipes.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice