ELI5 Using python virtual environment in docker container. - eviltoast

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?

  • sweng@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Sure If that happens. But it may also not. Which is actually usually the case. Sure, it’s not 100% safe, but it is safer.