The variable initialisation was missing when calling the script without using the --docker option.
--docker