Not saying docker isn’t a good solution sometimes, but if you just want to manage local python dev environments venv will get you through it with far less complexity and far less confusion.
> When we develop more than one python project, we need to configure our development environment with the dependencies of all the projects.
use pyenv and simple virtualenvs.
I think you are trying to substitute a virtualenvs with a docker. Why trying to kill a sparrow with a cannon?
I would suggest using alpine containers with python for a ~40mB container, versus the ~900MB container created here to run a server.
For me, python containers are only used when I want to bundle things into services on swarm, and I use venvs for local development.