Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created November 8, 2014 09:04
Show Gist options
  • Save ianblenke/4fcf5bcca7077a85e7ce to your computer and use it in GitHub Desktop.
Save ianblenke/4fcf5bcca7077a85e7ce to your computer and use it in GitHub Desktop.
Docker run etcdctl to set an etcd key for /deis/store/hosts/$IP
docker run --rm \
coreos/etcd \
/bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; \
go install ; \
/go/bin/etcdctl --peers $IP:4001 \
set /deis/store/hosts/$IP $IP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment