Reloading without restarting the container

Description:

You're managing a running Docker container named myapp that hosts a long-lived application process. A recent configuration change needs to be applied without any downtime, therefore restarting or stopping the container are not valid options. The program running inside the container handles the following signals:

  • SIGHUP: Reloads its configuration.
  • SIGUSR1: Shows its current configuration.

Tasks:

  • Reload the configuration for the program running inside the container.

Level: Beginner

Estimated duration: 15min

Access: Paid plan required

Tags: Docker

Scenarios