File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ user_in_group()
77
88validate_user ()
99{
10- if user_in_group $USER docker;
11- then
10+ if user_in_group $USER docker; then
1211 echo " The user $USER is part of docker group; continue building....."
1312 else
1413 printf " The user $USER isn't part of the docker group, please add, verify the group membership is re-evaluated and re-run build.sh; exiting...\n"
@@ -18,6 +17,11 @@ validate_user()
1817
1918# check if docker is installed; exit if otherwise
2019if [ -x " $( command -v docker) " ]; then
20+ # check docker engine is running
21+ if ! docker info > /dev/null 2>&1 ; then
22+ echo " This build script uses docker, and it isn't running - please start docker and try again!"
23+ exit 1
24+ fi
2125 if grep -q docker /etc/group;
2226 then
2327 validate_user
3135 exit 1
3236fi
3337
38+
3439printf " \n ***** If you are behind proxies, please ensure proxy settings are configured at builder/Dockerfile *****\n "
3540
3641# build docker image
You can’t perform that action at this time.
0 commit comments