title: How to go inside Docker container with different user?
body: <p>I've docker container running on a machine, in order to go inside the container I used command -</p>
  <pre><code>docker exec -it &lt;container-id&gt; bash
  </code></pre>
  <p>but when I run <code>whoami</code> here it returns <code>root</code></p>
  <p>But I want to perform actions with different user hence to login inside container with different user.</p>
  <p>How can I login with different user inside container?</p>