The following creates a container with a mounted volume so it can be used as a sandbox that doesn't expose your local development environment incase of any rogue npm packages that steal your .npmrc token, environment variables and others
Run the following:
docker run --volume ./:/opt/app --rm -it --name nodesandbox node:18-bullseye /bin/bash