title: Laravel sail: login as root or create an root user
body: <p>I am using sail and trying to use the shell as root, which is not possible.
  Switching to user root asks for a password, which is not know to me.</p>
  <p>I tried to change the dockerfile:</p>
  <pre><code>ARG WWWROOTGROUP
  RUN groupadd --force -g $WWWROOTGROUP sailRoot
  RUN useradd -ms /bin/bash --no-user-group -g $WWWROOTGROUP -u 1337 sailRoot
  
  RUN usermod -aG sudo sail
  RUN usermod -aG sudo sailRoot
  </code></pre>
  <p>I tried to add a new user and give him and the standard sail user root privileges, but it doesnt work.
  The sailRoot user isn't available inside the container. Of course I rebuild the container with that dockerfile.
  The changed dockerfile gets executed correctly as far as I can tell.</p>
  <p>Does anybody know how to change the user to root with sail?</p>
  <p>What I want to do is to install imagemagick into the container.
  I already add &quot;apt-get install imagemagick imagemagick-doc&quot; to the dockerfile aswell, but its not installed inside the container. If you know how to do that, I would really appreaciate it!</p>
  <p>Thanks.</p>