To start a bash prompt with only Docker installed on your host OS, run the following command:
docker run --rm -v $PWD:/src -w /src -u node -it node /bin/bash
Here's what each parameter does:
--rmremoves the container once youexit-v $PWD:/srcwill mount your current host working directory into/srcinside the container-w /srcwill set the working directory of the container to/src-u nodewill set the user/UID tonode-itwill enable interactive mode (keep STDIN open) and allocate a pseudo-TTYnodeis the latest node docker image/bin/bashis the command that will be run
From there, you'll be able to run commands like node, npm and yarn without having to install them locally.