Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Nek-
Last active October 7, 2021 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nek-/2936f21a4e57fc31ef6a6ef6d6056c2b to your computer and use it in GitHub Desktop.
Save Nek-/2936f21a4e57fc31ef6a6ef6d6056c2b to your computer and use it in GitHub Desktop.
An alias that uses docker to run old version of nodejs
alias n14='docker run -it --rm -w "/myvolume" -v "`pwd`:/myvolume" node:14'
n14 yarn install
n14 node something
# Side note: will not work with stuff that need network access such as server. In this case you need to map ports manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment