From e9085f0384167581afe8d5e44414be2c4fb1c17f Mon Sep 17 00:00:00 2001 From: lancergr Date: Sat, 7 May 2016 11:24:21 +0200 Subject: [PATCH] add sudo to docker inspect command --- start-container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-container.sh b/start-container.sh index ecb322b0..54bd9341 100755 --- a/start-container.sh +++ b/start-container.sh @@ -16,7 +16,7 @@ echo "start master container..." sudo docker run -d -t --dns 127.0.0.1 -P --name master -h master.kiwenlau.com -w /root kiwenlau/hadoop-master:0.1.0 &> /dev/null # get the IP address of master container -FIRST_IP=$(docker inspect --format="{{.NetworkSettings.IPAddress}}" master) +FIRST_IP=$(sudo docker inspect --format="{{.NetworkSettings.IPAddress}}" master) # delete old slave containers and start new slave containers i=1