> Docker tries to partially address this, right?

Docker is a good way of turning a 2kb shell script into a 400mb container. It's not a solution.

Flatpak would be a better example.