How to automate updating docker container in Azure
During use your docker container in Azure services sometimes you need to update application. And, you think how to automate such process without involving yourself.
So, first thing you can do it, if you use Web App service for container, is using Continuous Deployment in container settings. Continuous Deployment will automatically deploy your hosted image every time you push changes to it.
To enable this setting web app service automatically generate webhook. More information you can find here https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-ci-cd
Another thing that you can do if you don’t use Web App service for container, is using settings in Azure Container Registry.
An Azure container registry stores and manages private Docker container images, similar to the way Docker Hub stores public Docker images. You can use webhooks to trigger events when certain actions take place in one of your registry repositories. Webhooks can respond to events at the registry level, or they can be scoped down to a specific repository tag. More information you can find here https://docs.microsoft.com/en-us/azure/container-registry/container-registry-webhook.