Why clutter your mac or PC. Run it inside a container. Simple as:
https://code.visualstudio.com/docs/remote/containers-tutorial
But than you discover that your files mounted with the -v command inside the container are not available directly to the host OS if it’s on macOS. Basically is a container inside a container and you need another container to acces your files or synchronize your dev folder with the data folder inside the container:
https://stackoverflow.com/a/55648186
Well, I’ll go with the sync command:
docker cp access_volume:/data local-data
# modify local-data
docker cp local-data access_volume:/data
[EDIT 20200925]: as per:
https://code.visualstudio.com/docs/remote/containers-advanced
you can create a:
"mounts": [
"source=/local/source/path/goes/here,target=/target/path/in/container/goes/here,type=bind,consistency=cached"
]
inside your devcontainer.json to map your local folder inside the container.