Module 1Understand containers
3 lessonsLearn the problem that containers solve, and the difference between an image, a container and a virtual machine. Then install Docker, check it with a first container, and look inside a running container.
Package the ticket API in a container image, run it with a database on your computer, and deploy it to Azure Container Apps with its settings outside the image, a cost check and a full clean-up.
Read every lesson as a guest, or sign in to enroll and track your progress.
Enroll to save the lessons that you complete. It is free.
By the end of this course, you will be able to:
A container is a package that holds an application with everything it needs to run: the Python version, the packages and the operating system files. The same package runs the same way on your laptop, on a colleague’s computer and on a cloud server. This is why most AI services, from small APIs to large model servers, run in containers.
In this course, you put the ticket API from Build and Deploy Your First API in a container. You build the image step by step and see why each line of the Dockerfile is there. Then you run the API with a PostgreSQL database on your computer, with Docker Compose, and prove which data survives when a container is replaced.
Then you take the same image to the cloud. You learn the building blocks that every cloud has, with Azure as the example: a registry for images, a service that runs containers, an identity instead of a password, and the charges that each part can make. You deploy the API to Azure Container Apps and check it. Then you delete everything, and you prove that nothing is left that can cost money.
Every command in the lessons was run for real, and the lessons show its real output. Each lesson also shows a common mistake: what you see, why it happens and how to recover.
You completed Python for Practical AI Engineering and Build and Deploy Your First API, or you can already set up a virtual environment, run a FastAPI service with settings from environment variables, and test it with pytest and curl. You do not need to know Docker or a cloud platform. An Azure account is optional; every cloud step has a local simulation.
Courses to take first: Python for Practical AI Engineering, Build and Deploy Your First API.
People who built a small web API, as in Build and Deploy Your First API, and want it to run the same way on every computer and in the cloud. Most AI services run in containers, so this skill is needed for nearly every deployment.
Experienced AI practitioners designed this course. AI helped us draft the content; people chose the teaching approach and the examples, and reviewed every lesson. The outputs that you see are the actual results of running the code. How we make our courses
Learn the problem that containers solve, and the difference between an image, a container and a virtual machine. Then install Docker, check it with a first container, and look inside a running container.
Write a Dockerfile for the ticket API and build its image. You make builds fast with the layer cache and a .dockerignore file, pin every version, run as a user that is not root, and keep secrets out of the image.
Connect to the container through a port, give it its settings and secrets when it starts, and keep data that must survive. You run the API with a PostgreSQL database with Docker Compose.
Map the API's needs to cloud building blocks on Azure, give the app an identity instead of a password, and find every part of a design that can cost money.
Push the image to a registry, deploy it to Azure Container Apps with health checks and scale limits, check it and read its logs, and delete every resource with a checked inventory.
Use every module in one practice project. You collect evidence, and check it against the course outcomes.
Loading the reviews…
Took this course? Sign in to review it. Learners can write a review after they complete 25% of the lessons.