container instance deleting files and config

Franko999 161 Reputation points
2020-06-12T06:02:29.667+00:00

Hello,

Im new to the Azure cloud services. At the beginning of the week I deployed several container instances. In the middle of the week I connected to one of the containers and the job was done. I didnt stop the container as I wanted to connect to it through ftp. Due to some connectivity issues I connected only today and the files seem deleted and the job have been restarted, the same for other container instances. The same problem I have seen with config files and package instalation. I have installed all the packages on same container instance three times during this week.

So my question is I m I right that Azure after some period of time keeps deleting the container instance files created?

What is this time period?

How to avoid it and keep the files permanently, do I need to add some persistant storage, like blob?

If yes how can I connect my container instance to specific blob?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
648 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee
    2020-07-01T10:07:33.853+00:00

    @Franko999 Apologies for the delay.

    Container can be moved from one box to another basis several parameter. Storing files in container is not the right approach as they can be moved (and hence data is lost) from them.

    In order to have persistence storage, you will need to mount the volume to container (which is backed by azure file system). Read more about it from Persistence Volume section.

    Above solution is assuming you are using azure container services (ACS). There is similar solution if you are using AKS (azure Kubernetes solution). In case of AKS, you will need to create persistence volume claim and use it to store persistent data.

    In case you are using AKS, let me know and I will share the exact documentation to do the same.

    0 comments No comments