What is the purpose of the –init flag in docker run and what problem does it solve?

Docker Fundamentals Hard

Docker Fundamentals — Hard

What is the purpose of the –init flag in docker run and what problem does it solve?

Key points

  • --init flag runs tini as PID 1
  • tini handles signal forwarding and reaps zombie processes
  • Solves issues with PID 1 applications
  • Ensures proper process management inside the container

Ready to go further?

Related questions