If you commit the .devcontainer.json and associated files your whole team gets a consistent, local-feeling, environment for free.
Containerisation solved the "Works on my machine" gap between local and prod. This is just solving for the same gap between Dev 1 and Dev 2.