Creating a Docker image from vmware/photon:2.0 I want to run the application inside that container as a user different than root. So, trying to create a new group and add user to it by following command:
groupadd -r new-group && useradd -r -g new-group new-user
It throws:
bash: groupadd: command not found
How can I achieve this?