Created
March 2, 2017 20:51
-
-
Save xetys/e6fe1569ffda654aab7637b9a3d5c42f to your computer and use it in GitHub Desktop.
Install Rancher Agent on a fresh ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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