Skip to content

Instantly share code, notes, and snippets.

@pi0
Created November 26, 2016 23:27
Show Gist options
  • Save pi0/703433e82337501fd5831f79ff20f713 to your computer and use it in GitHub Desktop.
Save pi0/703433e82337501fd5831f79ff20f713 to your computer and use it in GitHub Desktop.
Rancher + Weave
docker run --rm --privileged --net weave `weave dns-args` \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/weave/weave.sock:/var/run/weave/weave.sock \
-v /var/lib/rancher:/var/lib/rancher \
-e HOST_DOCKER_SOCK="/var/run/weave/weave.sock:/var/run/weave/weave.sock -v /var/run/docker.sock" \
-e DOCKER_HOST="unix:///var/run/weave/weave.sock" \
rancher/agent \
<TOEKN_URL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment