From 5a596157da80ca3c1d890fe3e16f9c9abf492a27 Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Fri, 14 Mar 2014 15:52:17 -0700 Subject: [PATCH] add horrible method of getting the host IP --- imagebuild/coreos/oem/system/teeth-agent.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagebuild/coreos/oem/system/teeth-agent.service b/imagebuild/coreos/oem/system/teeth-agent.service index 60d853934..a25c2ba7d 100644 --- a/imagebuild/coreos/oem/system/teeth-agent.service +++ b/imagebuild/coreos/oem/system/teeth-agent.service @@ -1,5 +1,5 @@ [Service] -ExecStart=/usr/bin/docker run -p 9999:9999 -privileged=true -v=/sys:/mnt/sys oemdocker /usr/local/bin/teeth-agent +ExecStart=/usr/bin/docker run -p 9999:9999 -privileged=true -v=/sys:/mnt/sys oemdocker /usr/local/bin/teeth-agent --ipaddr="`ip a | grep '10\.' | sed -e 's/inet \(10\.[0-9\.]\+\).*/\1/'`" Restart=always [Install]