I would change the flag default to 'docker' so that you don't have to have an if statement in the code or only have a n if statement returning the error if the group is not the default group.