Skip to content

Instantly share code, notes, and snippets.

View timwoodart's full-sized avatar

Tim Wood timwoodart

  • CNN Digital
  • Atlanta, GA
View GitHub Profile
@timwoodart
timwoodart / v1-ubuntu-docker-node-apt-get.sh
Created March 27, 2017 19:40 — forked from garystafford/v1-ubuntu-docker-node-apt-get.sh
Install the latest versions of Node.js and npm into a Docker Ubuntu container, with or without need for root access. Easily update both applications to the latest versions. Creates a new user account ('testuser') and installs common npm packages.
###############################################################################
# Version 1: using ‘apt-get install’
# Installs using apt-get
# Requires update to npm afterwards
# Harder to get latest copy of node
# Requires sudo to use npm
###############################################################################
# create new docker ubuntu container
sudo docker run -i -t ubuntu /bin/bash # drops you into container as root