Skip to content

Instantly share code, notes, and snippets.

@vetional
Last active May 16, 2017 14:08
Show Gist options
  • Save vetional/71f6ad65614aca770db590bd6de10bb5 to your computer and use it in GitHub Desktop.
Save vetional/71f6ad65614aca770db590bd6de10bb5 to your computer and use it in GitHub Desktop.
docker utility commands
wget -qO- https://get.docker.com/ | sh
sudo apt-get update
sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
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 docker-ce
apt-cache madison docker-ce
service docker start
docker run --name mongoDB -d -p 27017:27017 -v ~/data:/data/db mongo
docker run --name rethinkDB -p 8088:8080 -p 28015:28015 -v ~/rdata:/data -d rethinkdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment