Since you mention "Docker VM" I'm assuming you're using a Mac?
If so my best advice is to not use Docker for day-to-day development; reverse-engineer the docker-compose.yml/etc and run what you'd run in containers locally.
As a web developer I've been getting away with doing this for almost a decade now. It's a one-time cost to review what containers the app needs and then map that to a native world (install Postgres/etc via homebrew, adjust the env vars, etc).
The only time I run Docker nowadays is when I actually need to work on the Dockerfile itself and need to test it locally.
If so my best advice is to not use Docker for day-to-day development; reverse-engineer the docker-compose.yml/etc and run what you'd run in containers locally.
As a web developer I've been getting away with doing this for almost a decade now. It's a one-time cost to review what containers the app needs and then map that to a native world (install Postgres/etc via homebrew, adjust the env vars, etc).
The only time I run Docker nowadays is when I actually need to work on the Dockerfile itself and need to test it locally.