title: Create a user in a Dockerfile : Option d is ambiguous
body: <p>I'm writing a Dockerfile where I want to create a user and use it instead of <code>root</code> user because that's a recommended practice.</p>
  <p>I do the following:</p>
  <pre><code>FROM python:3
  WORKDIR /app
  RUN adduser -D myuser
  USER myuser
  ...
  </code></pre>
  <p><code>docker-compose up</code> rewards me with the following error message:</p>
  <pre><code>...    
  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
  </code></pre>
  <p>That <code>-d</code> flag if often used (e.g. <a href="https://medium.com/@DahlitzF/run-python-applications-as-non-root-user-in-docker-containers-by-example-cba46a0ff384" rel="noreferrer">here</a>) to create a user in a dockerfile but I can't figure out what it is supposed to be, <code>disabled-password</code> ?</p>