Azure / Azure/azure-cli

az container stop seems to send SIGKILL rather than SIGTERM

Open
#16,673 17 comments 14 reactions 0 assignees View on GitHub
act-observability-squad Container Instances Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**

When executing _az container stop -g foo -n bar_ I noticed that the stop units are killed in the middle of its execution. This happens in a CentOS image. When logging in to the container and sending a SIGTERM to the PID-1, then every of the specified stop units get properly executed. I therefore conclude that _az container stop_ sends a SIGKILL to the PID-1 process, does not implement a graceful shutdown

**To Reproduce**

_az container stop ..._

**Expected behavior**

_az container stop_ to send a SIGTERM to the PID-1 process of the container, i.e. _ACI_ should implement a graceful shutdown and only after a specified amount of time a SIGKILL should follow

**Environment summary**

Azure ACI with a CentOS based image

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.