Skip to content

Commit

Permalink
fixed hard-coded IP addr
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Oct 5, 2018
1 parent e0c96fa commit 5eed6e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/clairscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ else
fi
sleep 30

./clair-scanner --ip 172.17.0.1 $1
#get ip where clair-scanner will listen
clairip=$(ifconfig docker0 | grep 'inet ' | sed 's/^[[:space:]]*//g' | cut -f 2 -d ' ' | sed 's/^[[:space:]]*//g')

./clair-scanner --ip ${clairip} $1
retcode=$?

docker kill clair
Expand Down

0 comments on commit 5eed6e8

Please sign in to comment.