Category: Docker, container

This is the last part in the series of blog posts showing how to set up and optimize a containerized Python development environment. The second part showed how to easily set up different components that our Python application needs and how to easily manage the lifecycle of the overall project with Docker Compose. In this final part, we review the development cycle of the project and discuss in more details how to apply code updates and debug failures of the containerized Python services.

docker-compose logs app Attaching to project_app_1 app_1 | * Serving Flask app "server"(lazy loading) ... app_1 | * Debugger PIN: 315-974-099app_1 | * Detected change in '/code/server.py', reloading app_1 | * Restarting with stat app_1 | * Debugger is active!

If we choose to rely on Visual Studio Code to show how to debug Python code running in containers we need to do the following to connect to the remote debugger directly from VSCode.

Related Articles