Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active April 15, 2018 11:20
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 mirontoli/47a2e1c4bdcdc50db3fc56010129cf8e to your computer and use it in GitHub Desktop.
Save mirontoli/47a2e1c4bdcdc50db3fc56010129cf8e to your computer and use it in GitHub Desktop.
# tried on ubuntu 17.10 2018-04-11
# installation as described on docker website
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y docker-ce
# post installation linux
# https://docs.docker.com/install/linux/linux-postinstall/
sudo groupadd docker
sudo usermod -aG docker $USER
# try hello world
# should run without sudo
docker run hello-world
# try waldekm spfx
# https://hub.docker.com/r/waldekm/spfx/
docker run -it --rm --name ${PWD##*/} -v $PWD:/usr/app/spfx -p 5432:5432 -p 4321:4321 -p 35729:35729 waldekm/spfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment