fix(SCRIPT): verify docker installed

This commit is contained in:
Asif Bacchus 2021-01-06 02:35:29 -07:00
parent 942a855ffa
commit e5b2f68fd4
1 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,12 @@ textblockParam() {
### pre-requisite checks
# is docker installed?
if ! command -v docker > /dev/null; then
printf "%s\nCannot find docker... is it installed?\n%s" "$err" "$norm"
exit 2
fi
# is user root or in the docker group?
if [ ! "$(id -u)" -eq 0 ]; then
if ! id -Gn | grep docker >/dev/null; then