Share via

ACI container is still running after deletion of container instance

Dennis Lerche 0 Reputation points
2025-12-19T13:16:11.7733333+00:00

I have a container instance that I have deleted, after deletion I re-deployed the container instance with the same name, however I can see that the old container is still running as I can ping that IP and the new container instance gives an ip higher than previously.

How can I get the invisible container deleted as I cannot see it, but can see that it exists as the ip answers.

According to this https://learn.microsoft.com/uk-ua/troubleshoot/azure/azure-container-instances/management/aci-still-running-after-stop-delete-command the re-deploy should have solved it, but I have tried several times with no luck.

Azure Container Instances

2 answers

Sort by: Most helpful
  1. Dennis Lerche 0 Reputation points
    2026-01-05T08:57:54.48+00:00

    Even waiting 3 weeks then deleting and re-deploying doesn't solve the issue. The container list doesn't show any extra containers only the ones that are visibly running in the resource group.

    Was this answer helpful?


  2. Manish Deshpande 6,835 Reputation points Microsoft External Staff Moderator
    2025-12-24T08:51:05.2233333+00:00

    Hello

    Despite executing the stop or delete command, an Azure container instance continues to run and is still billed.

    Cause

    This issue might occur due to potential bugs in the container stop or delete process.

    Solution

    To resolve this issue, follow these steps:

    1. Verify that the stop or delete command was executed.
    2. Verify that the container instance is still billed.
    3. Create a new container instance with the same resource ID in the same region. Upon successful creation, the old container instance will be deleted immediately.

    Scenario in which Spot containers remain stuck in the Waiting state in Microsoft Azure Container Instances.

    Symptoms

    Azure Spot containers remain stuck in the Waiting state for an extended amount of time (30 minutes or more).

    VM was Evicted

    Containers typically become stuck in the Waiting state because the underlying Spot virtual machine (VM) was evicted. This action forces all containers within the container group to wait for a new VM node to be assigned. Azure Spot VMs can be evicted at any time for any of the following reasons:

    • Resource constraints on the host VM (for example, because of insufficient CPU cores or memory).
    • Capacity adjustments that can cause worker VM nodes to be evicted at any time from a virtual machine scale set and, therefore, require your container group to be moved to another VM node. These capacity adjustments include the following scenarios.
      Eviction scenario Effect on the container group
      A node in a cluster gets evicted. The container group has to be moved to another node in the same cluster (if present).
      All nodes in a cluster get evicted. The container group has to be moved to a node in another cluster (if present).
      All nodes in all clusters get evicted. A Spot Restore occurs, and the container group has to be moved to a new node in any cluster.

    Network related Problems

    Network-related problems cause containers to remain in the Waiting state.

    Follow these steps to gather troubleshooting information and apply possible solutions for the problem:

    Retrieve container logs and events by running the following az container logs command:

    Azure CLI

    az container logs --resource-group
    

    Check the container logs for any error messages or events about image pulling, networking, or other container-specific problems.

    Check for eviction events.

    Make sure that your container deployment settings fall within the parameters that are defined in the Resource availability & quota limits for Azure Container Instances.

    Consider specifying lower CPU and memory settings for the container.

    If the problem persists, consider deploying your container to a different Azure region.

    If the problem is related to capacity adjustments, consider deploying your containers during off-peak hours.

    By following these steps, you can identify the cause of the Waiting state problem for your Azure Spot containers and take the appropriate action to resolve the problem. Remember to monitor your containers and adjust your deployment strategy as necessary to reduce disruptions.

    Thanks,
    Manish Deshpande

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.