Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run docker container on azure

Tags:

docker

azure

I have a simple docker container which runs just fine on my local machine. I was hoping to find an easy checklist how I could publish and run my docker container on Azure, but couldn't find one. I only found https://docs.docker.com/docker-for-azure/, but this document kind of leaves me alone when it comes to actually copy my local docker container to Azure. Isn't that supposed to be very easy? Can anybody point me in the right direction how to do this?

like image 667
Urs Meili Avatar asked May 03 '18 15:05

Urs Meili


People also ask

Can you run Docker in Azure?

With Docker deployment on Azure, you're able to run modern and traditional Linux or Windows apps with enterprise-grade security, support, and scale.

How do I run a container instance in Azure?

Open the overview for the container group by navigating to Resource Groups > myresourcegroup > mycontainer. Make a note of the FQDN of the container instance and its Status. Once its Status is Running, navigate to the container's FQDN in your browser. Congratulations!

Can I run Docker on Azure Virtual Desktop?

Support for running Docker Desktop on a virtual desktop is available to Docker Business customers, on VMware ESXi or Azure VMs only. The support available from Docker extends to installing and running Docker Desktop inside the VM, once the nested virtualization is set up correctly.


1 Answers

But it is really easy.. once you know where to find the docs :-). I would take the azure docs as a starting point as there are multiple options when it comes to hosting containers in Azure:

If you're looking for this...

Simplify the deployment, management, and operations of Kubernetes -> Azure Container Service (AKS)

Easily run containers on Azure with a single command -> Container Instances

Store and manage container images across all types of Azure deployments -> Container Registry

Develop microservices and orchestrate containers on Windows or Linux -> Service Fabric

Deploy web applications on Linux using containers -> App Service

Based on your info I would suggest storing the image using the Azure Container Registry and host the container using Azure Container Instances. No need for a VM to manage this way.

There is an excellent tutorial you could follow (I skipped the first 1 step since it involves creating a docker image, you already have one)

Another complete guide of pushing your image to azure and create a running container can be found here.

The good thing about Azure Container Instances is that you only pay for what you actually use. The Azure Container Registry is a private image repository hosted in Azure, if course you could also use Docker Hub but using ACR makes it all really simple.

like image 57
Peter Bons Avatar answered Sep 21 '22 14:09

Peter Bons