diff --git a/install-paperless-ng.sh b/install-paperless-ng.sh index 8fb44e222..b0f0950fc 100755 --- a/install-paperless-ng.sh +++ b/install-paperless-ng.sh @@ -64,6 +64,17 @@ if [[ -z $(which docker-compose) ]] ; then exit 1 fi +# Check if user has permissions to run Docker by trying to get the status of Docker (docker status). +# If this fails, the user probably does not have permissions for Docker. +docker stats --no-stream 2>/dev/null 1>&2 +if [ $? -ne 0 ] ; then + echo "" + echo "WARN: It look like the current user does not have Docker permissions." + echo "WARN: Use 'sudo usermod -aG docker $USER' to assign Docker permissions to the user." + echo "" + sleep 3 +fi + echo "" echo "############################################" echo "### Paperless-ng docker installation ###"