Edit

Share via


Azure container group intermittently restarts due to killing event interruptions

This article provides a solution to an issue where an Azure container group is unexpectedly stopped and restarted due to killing event interruptions.

Symptoms

A container group intermittently restarts without clear causes. You also experience one or more of the following symptoms and receive exit code 7147, 7148, 1, or:

  • A portal event message "Killing container with id <ID>" is shown.
  • Log Analytic events show the "Killing container with id <ID>" message.
  • The container group IP address is changed.

Cause

Container group killing events can happen due to platform maintenance (which is an expected behavior), load balancing, or user application errors.

Solution

Exit codes 7147 and 7148 indicate that the container group is stopped due to platform maintenance, which is an expected behavior. For more information, check Diagnose common code package errors by using Service Fabric - Azure Service Fabric

Exit code 1 means that an error occurs in the user's application and the container group is stopped. To resolve this error, the user needs to fix the application.