diff --git a/Makefile b/Makefile index c5c5d59620c8..2dfab3274869 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,10 @@ SHELL = /bin/bash USER := $(shell id -un) PWD := $(shell pwd) +ifeq ($(USER), root) +$(error Add your user account to docker group and use your user account to make. root or sudo are not supported!) +endif + # Remove lock file in case previous run was forcefully stopped $(shell rm -f .screen)