File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ https://sensorsiot.github.io/IOTstack/
99https://youtu.be/a6mjt8tWUws
1010
1111## Installation
12- 1 . On the (PRi ) lite image you will need to install git first
12+ 1 . On the (RPi ) lite image you will need to install git first
1313
1414```
1515sudo apt-get install git -y
Original file line number Diff line number Diff line change @@ -180,6 +180,25 @@ else
180180 fi
181181fi
182182
183+ # ---------------------------------------------------------------------------------------------------
184+ # Docker updates
185+ echo " checking docker version"
186+ SERVER_VERSION=$( docker version -f " {{.Server.Version}}" )
187+ SERVER_VERSION_MAJOR=$( echo " $SERVER_VERSION " | cut -d' .' -f 1)
188+ SERVER_VERSION_MINOR=$( echo " $SERVER_VERSION " | cut -d' .' -f 2)
189+ SERVER_VERSION_BUILD=$( echo " $SERVER_VERSION " | cut -d' .' -f 3)
190+
191+ if [ " ${SERVER_VERSION_MAJOR} " -ge 18 ] && \
192+ [ " ${SERVER_VERSION_MINOR} " -ge 2 ] && \
193+ [ " ${SERVER_VERSION_BUILD} " -ge 0 ]; then
194+ echo " Docker version >= 18.2.0. You are good to go."
195+ else
196+ echo " "
197+ echo " Docker version less than 18.02.0 consider upgrading or you may experience issues"
198+ echo " Upgrade by typing: 'sudo apt upgrade docker docker-compose'"
199+ sleep 2
200+ fi
201+
183202# ---------------------------------------------------------------------------------------------------
184203# Menu system starts here
185204# Display main menu
You can’t perform that action at this time.
0 commit comments