Comfortably run Docker container environment (especially VSCode Remote Containers)
Use How to exclude some when mounting Volume with Docker to mount the volume of build files etc. (where you write it in .gitignore) remove.
When I built code using VSCode's Remote Container, it became slow, and suddenly ** Docker host went down **, so I couldn't figure out what was the cause at first. .. When I suspected that the cause was a high load on the mount file, I solved it and improved the performance.
If you use Remote Containers, you don't need to mount them during development, so it seems to be more effective than using the cached option.
Sample repository using this method
Remote Conyainers Nice!