I'm writing a Dockerfile where I want to create a user and use it instead of root user because that's a recommended practice.
I do the following:
FROM python:3
WORKDIR /app
RUN adduser -D myuser
USER myuser
...
docker-compose up rewards me with the following error message:
...
Option d is ambiguous (debug, disabled-login, disabled-password)
ERROR: Service 'webapp' failed to build: The command '/bin/sh -c adduser -D myuser' returned a non-zero code: 1
That -d flag if often used (e.g. here) to create a user in a dockerfile but I can't figure out what it is supposed to be, disabled-password ?