Discussion on: 10 docker-compose and docker commands that are useful for active development

simlu profile image
Lukas Siemon

I would like to throw this one in:

docker run -u`id -u`:`id -g` -v $(pwd):/user/project -v ~/.aws:/user/.aws -v ~/.npmrc:/user/.npmrc -w /user/project -it --entrypoint /bin/bash circleci/node:12

Great if you need to run a bash shell in the current directory with e.g. Node 12. Replace docker image as needed.

This also links the aws and npm config into the docker container. Adjust config link through as needed.

aduranil profile image
Lina Rudashevski Author

nice! tks for sharing this

moonsmile profile image