Skip to content

Instantly share code, notes, and snippets.

@aschmoe
Created February 5, 2015 22:54
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 aschmoe/0b7c841d991b2eef4b4e to your computer and use it in GitHub Desktop.
Save aschmoe/0b7c841d991b2eef4b4e to your computer and use it in GitHub Desktop.
Installing Docker + Fig properly
##############
# Install Docker
# Complex (USE SIMPLE):
# sudo sh -c "echo deb https://get.docker.com/ubuntu docker main\
# > /etc/apt/sources.list.d/docker.list"
# sudo apt-get update
# sudo apt-get install lxc-docker
# SIMPLE:
curl -sSL https://get.docker.com/ubuntu/ | sudo sh
########################################
# DOCKER WITHOUT SUDO (need this for fig)
# From: https://docs.docker.com/installation/ubuntulinux/#giving-non-root-access
# Add the docker group if it doesn't already exist.
sudo groupadd docker
# Add the connected user "${USER}" to the docker group.
# Change the user name to match your preferred user.
# You may have to logout and log back in again for
# this to take effect.
sudo gpasswd -a ${USER} docker
# Restart the Docker daemon.
# If you are in Ubuntu 14.04, use docker.io instead of docker
sudo service docker restart
############
# Install Fig
sudo apt-get install python-pip
sudo pip install -U fig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment