title: Run vscode in docker
body: <p>I want to run vscode in docker for internal test, i've created the following</p>
  <pre><code>FROM debian:stable
  
  RUN apt-get update &amp;&amp; apt-get install -y apt-transport-https curl gpg
  RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor &gt; microsoft.gpg \
   &amp;&amp; install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ \
   &amp;&amp; echo &quot;deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main&quot; &gt; /etc/apt/sources.list.d/vscode.list
  RUN apt-get update &amp;&amp; apt-get install -y code libx11-xcb-dev libasound2
  
  
  RUN code --user-data-dir=&quot;~/.vscode-root&quot;
  </code></pre>
  <p>I use to build</p>
  <p><code>docker build -t vscode .</code></p>
  <p>I use to run
  <code>docker run vscode code  -v</code><br />
  when I run it like this I got error</p>
  <p><code>You are trying to start vscode as a super user which is not recommended. If you really want to, you must specify an alternate user data directory using the --user-data-dir argument.</code></p>
  <p>I just want to verify it by running something like <code>RUN code -v</code> how can I do it ?</p>
  <p>should I change the user ? I just want to run vscode in docker and use some vscode apis</p>