What is the purpose of the STOPSIGNAL instruction in a Dockerfile?

Docker Fundamentals Hard

Docker Fundamentals — Hard

What is the purpose of the STOPSIGNAL instruction in a Dockerfile?

Key points

  • STOPSIGNAL overrides the default SIGTERM signal
  • It allows applications to handle different signals for shutdown
  • Ensures correct stopping of applications
  • Important for graceful shutdown processes

Ready to go further?

Related questions