CHAPTER 11Create and Deploy a Container with Azure Container Registry and Azure App Service

A container is a reliable solution for running a project in any computing environment. Inside a container is a packaged project and its dependencies, which can be run anywhere. Thus, a containerized Python project enables you to run a single service or an entire application environment while keeping everything inside the container isolated from the host system. Attempting to run a project locally that isn't containerized may result in project dependencies that conflict with what's installed on your computer; you can anticipate this happening if you're working with a team of developers, as no two developers have the same computer configurations.

Various platforms are available for containerizing projects. The platform discussed in this chapter is named Docker, which is an open platform for developing, shipping, and running applications. Microsoft provides a Visual Studio Code Docker extension, which makes it easy to create, manage, and debug containerized applications. To learn more about Docker, visit docs.docker.com/get-started/overview/.

Getting Started

Using Docker to containerize a project in Visual Studio Code requires Docker Desktop, which is an application for building and sharing containerized applications. In the browser, navigate to www.docker.com/products/docker-desktop to download and install Docker Desktop. Once installed, verify the installation by running the command ...

Get Visual Studio Code for Python Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.