I read some articles about using a virtual environment in Docker. Their argument are that the purpose of virtualization in Docker is to introduce isolation and limit conflicts with system packages etc.

However, aren’t Docker and Python-based images (e.g., python:*) already doing the same thing?

Can someone eli5 this whole thing?

  • naught@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    2 months ago

    If you’re on an apple silicon mac, docker performance can be atrocious if you are emulating. It can also be inconvenient to work with Docker volumes and networks. Python already has pyenv and tools like poetry and rye. Unless there’s a need for Docker, I personally would generally avoid it (tho I do almost all my deployments via docker containers)