Keep your host free from lingering services and mismatched versions. Run your dev stack in isolation and rebuild it when needed.
Between its well-documented nature, beginner-friendly collection of tools, and thousands of first and third-party images, Docker has a large following in the self-hosting and home lab communities.