Skip to content

Instantly share code, notes, and snippets.

@xetys
Created March 2, 2017 20:51
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 xetys/e6fe1569ffda654aab7637b9a3d5c42f to your computer and use it in GitHub Desktop.
Save xetys/e6fe1569ffda654aab7637b9a3d5c42f to your computer and use it in GitHub Desktop.
Install Rancher Agent on a fresh ubuntu 16.04
apt-get install -y apt-transport-https ca-certificates && \
apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list && \
apt-get update && \
apt-get install -y docker-engine=1.12.6-0~ubuntu-xenial && \
docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.0 <server-url>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment