Skip to main content Explore View all products (200+) Microsoft Foundry Azure Copilot GitHub Copilot Azure Kubernetes Service (AKS) Azure Cosmos DB Azure Database for PostgreSQL Azure Arc Microsoft Fabric Linux virtual machines in Azure Foundry Models Foundry Agent Service Foundry IQ Foundry Tools Foundry Control Plane Observability in Foundry Control Plane Azure OpenAI in Foundry Models Azure Speech in Foundry Tools Azure Machine Learning View all databases Azure Cosmos DB Azure DocumentDB Azure SQL Azure Database for PostgreSQL Azure Managed Redis Microsoft Fabric Azure Databricks Linux virtual machines in Azure Windows Server on Azure Azure Functions Azure Virtual Machine Scale Sets Azure API Management Azure Container Apps Azure Kubernetes Service (AKS) Azure Kubernetes Fleet Manager Azure Container Registry Azure Red Hat OpenShift Azure Container Instances Azure Container Storage Azure Arc Azure Local Microsoft Defender for Cloud Azure Monitor Microsoft Sentinel Azure Migrate View all solutions (40+) Cloud solutions for small and medium businesses Cloud migration and modernization center Data analytics for AI Azure Databases AI apps and agents Microsoft Marketplace Microsoft Sovereign Cloud AI apps and agents Responsible AI with Azure AI Infrastructure Data analytics for AI Machine learning operations (MLOps) Low-code application development on Azure Integration Services Serverless computing DevOps Migration and modernization center .NET apps migration Databases on Azure Linux on Azure Oracle on Azure SAP on the Microsoft Cloud Adaptive cloud High-performance computing (HPC) Infrastructure as a service (IaaS) Resiliency Azure Essentials Frontier Accelerate for Azure FinOps on Azure Microsoft Marketplace Azure pricing overview Create an Azure account Free Azure services Flexible purchase options Pricing calculator FinOps on Azure Maximize ROI from AI Azure savings plans Azure reservations Azure Hybrid Benefit Virtual Machines Azure SQL Microsoft Foundry Microsoft Fabric Azure Kubernetes Service (AKS) Microsoft Defender for Cloud View more Software Development Companies Microsoft Marketplace Find a partner Resources for Azure partners Get started with Azure Customer stories Analyst reports, white papers, and e-books Videos Learn more about cloud computing Documentation Explore Azure portal Developer resources Quickstart templates Resources for startups Developer community Students Azure for partners Blog Events and Webinars Learn Support Contact Sales Get started with Azure Sign in

Now more than ever, developers need agility to meet rapidly increasing demands from customers. Containerization is one key way to increase agility. Containerized applications are built in a more consistent and repeatable way, by way of defining desired infrastructure, dependencies, and configuration as code for all stages of the lifecycle. Applications often start and stop faster at runtime too, which often helps quickly start, stop, scale out, and update in the cloud.

With this in mind, we announced a new partnership earlier today between Microsoft and Docker to integrate Docker Desktop more closely with Microsoft Azure and the Visual Studio line of products.  

Docker Desktop built-in tools, features, and command-line utilities will provide a way to natively set Azure as a context to run containers in the cloud with context and run in Azure containers in a few simple commands. The product integration begins with the ability to create Azure Container Instances (ACI), which is a solution for any scenario that can operate in isolated containers, without orchestration.

Let’s take a look at new product integrations using an example. We have a simple TCP-based Python game server app that is already building and running on the local developer machine using Docker Desktop. The app depends on a slim version of Linux and other dependencies in requirements.txt. The Docker tools extension in Visual Studio Code provides easy commands to do builds and runs on Docker Desktop, and then a push to a private container registry in Docker Hub. The experience is particularly fast using the new release of WSL2.

DockerAnnouce1

With the updated version of Docker Desktop, coming later this year, we see native commands for creating a docker context for Azure Container Instances:

$ docker context aci-create paulyuk/webapp-dev

$ docker context use paulyuk/webapp-dev

Contexts are useful to easily swap between one or more environments that have a Docker host. As an example, I can have contexts for local (the default), myapp-dev, myapp-qa. The entire Docker tools chain (including Docker.exe CLI) honors the context. This makes running a container in Azure easy and consistent with running locally, just using the same familiar command:

$ docker run paulyuk/pythontcpgame:1.1

Deploying a container to Azure is as simple as that, using the standard tools in Docker Desktop. Plus, you can bring the whole experience together using Docker Desktop + Visual Studio + WSL2 + GitHub to have a cloud-optimized desktop. I go into more detail about the integrations in this DockerCon LIVE 2020 session.

We are thrilled about expanding our collaboration with Docker and continuing to make the developer experience better for developers.

Learn more

To learn more about the partnership, you can read this press release and blog post from Docker. You can leverage the current VS Code Docker Extension with docker contexts, Docker Desktop with WSL2 integration today. The preview with the ACI integration in Docker Desktop will follow later this year.

WE ARE MICROSOFT

Explore Microsoft Foundry

The future of AI starts here. Envision your next great AI app with the latest technologies. Get started with Azure.