Skip to content

Instantly share code, notes, and snippets.

@svirmi
Last active March 31, 2021 09:17
Show Gist options
  • Save svirmi/6ba68aca210555bce085f38079ca75cf to your computer and use it in GitHub Desktop.
Save svirmi/6ba68aca210555bce085f38079ca75cf to your computer and use it in GitHub Desktop.
run node.js image with current folder mapping
docker run -it --rm -p 8000:8000 -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/app node:12 /bin/bash
@svirmi
Copy link
Author

svirmi commented Jul 24, 2020

docker run -it --rm -p 8000:8000 -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/app node:12 /bin/bash

@svirmi
Copy link
Author

svirmi commented Mar 31, 2021

docker run -it --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/app node:12 /bin/bash

without port mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment