DEV Community

Discussion on: Explain Docker Like I'm Five

Collapse
 
srleyva profile image
Stephen Leyva (He/Him) • Edited

There are some parallels in concept maybe? The key difference is while Python Virtual Environments isolate which Python interpreter, environment, and paths you use, its still apart of the host system.

Docker images are only reliant upon the host kernel and run isolated from the system like a sandbox.

Example: Wanna test what a particular command or python script will do to a system without affecting the actual host? Run it inside a docker container.