Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update docker image in Azure Container Instances

I have an image in the repository on the docker hub. I created azure container instance based on the image in the repository on the docker hub. I updated the image in the repository on the docker hub. How can I apply changes to a container?

like image 809
Egor Rezchikov Avatar asked Apr 12 '18 12:04

Egor Rezchikov


People also ask

How to run a docker image inside Azure Container instance?

To run your docker image inside ACI, You can use of Azure Container Registry. step6: once ACI gets created you can go to overview and you can see fqdn, using fqdn you can access your application running inside Azure Container Instance. @iocuydi Please help with the link of document on which above document feedback request is created.

What's new with Docker and Microsoft Azure?

Last month Microsoft and Docker announced this collaboration, and today you can experience it for yourself. The new edge release of Docker Desktop provides an integration between Docker and Microsoft Azure that enables you to use native Docker commands to run your applications as serverless containers with Azure Container Instances.

What's new in the new Docker desktop release?

The new edge release of Docker Desktop provides an integration between Docker and Microsoft Azure that enables you to use native Docker commands to run your applications as serverless containers with Azure Container Instances.

How do I deploy to Azure Container instances (ACI)?

Install or update to the latest release and get started deploying containers to Azure Container Instances (ACI) today. The Azure Docker integration enables you to deploy serverless containers to Azure Container Instances (ACI) using the same Docker Command-line (CLI) commands from local development.


3 Answers

The ways I've found so far are

  1. to use the Azure Resource explorer.

    • Find the container group
    • Click read/write
    • Click edit
    • Change the image version
    • Put password in imageRegistryCredentials when using a private registry.
    • Click Post
  2. This blog post using the Go SDK.

  3. Delete and recreate the group by using an ARM template. You'll loose the public ip using this approach.

You'll have some downtime in any of the cases above.

like image 192
LoekD Avatar answered Oct 15 '22 02:10

LoekD


You can also use Azure CLI. Run az container create again using the same resource group name and container group name, with the new image tag. The container will be updated with new image.

like image 24
Anders Avatar answered Oct 15 '22 03:10

Anders


In addition to the mentioned re-creation of the container group and depending on your scenario you could also deploy a container group pointing to the :latest docker image once.

In my scenario I have a scheduled container instance that is running once a day. Whenever it starts it is pulling the docker image with the :latest tag from the azure container registry. This avoids re-creation of the container group.

like image 36
afrischk Avatar answered Oct 15 '22 01:10

afrischk