Skip to content

Commit

Permalink
Merge pull request #14 from lancergr/master
Browse files Browse the repository at this point in the history
add sudo to docker inspect command
  • Loading branch information
kiwenlau committed May 7, 2016
2 parents ba29553 + e9085f0 commit 290d9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 290d9a1

Please sign in to comment.