docker binaries are location in /usr/bin
Change-Id: I1c37eb91fa648ac1ee12b02badd0de89bc82e959
diff --git a/jjb/onos/onos-docker-build.sh b/jjb/onos/onos-docker-build.sh
index 856abc9..db209e3 100644
--- a/jjb/onos/onos-docker-build.sh
+++ b/jjb/onos/onos-docker-build.sh
@@ -3,6 +3,9 @@
# exit on errors
set -eu -o pipefail
+DOCKER="/usr/bin/docker"
+${DOCKER} --version
+
# set up ONOS build environment
ONOS_ROOT=`pwd`
. tools/build/envDefaults
@@ -15,7 +18,6 @@
# build and deploy the Docker image
# build and deploy the Docker image
-DOCKER="/usr/local/bin/docker"
$DOCKER build -t onosproject/onos:${ONOS_VERSION} .
$DOCKER login --username ${DOCKERHUB_USERNAME} --password ${DOCKERHUB_PASSWORD}
$DOCKER push onosproject/onos:${ONOS_VERSION}