DEV Community

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

Collapse
 
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.

Collapse
 
moonsmile profile image
Nguyễn Minh Tuấn

so cool <3

Collapse
 
aduranil profile image
Lina Rudashevski

nice! tks for sharing this