<p>I'm struggling with some issue related with container user permissions.</p>
<p>I've created an image from <a href="https://github.com/apache/zeppelin/blob/master/scripts/docker/zeppelin/bin/Dockerfile" rel="nofollow noreferrer">this dockerfile</a>.</p>
<p>As you can see, at <a href="https://github.com/apache/zeppelin/blob/master/scripts/docker/zeppelin/bin/Dockerfile#L128" rel="nofollow noreferrer">line 128</a> it's changing to <code>USER 1000</code>.</p>
<p>I'm trying to play with anaconda using this command:</p>
<pre><code>$ conda install pandas 
Collecting package metadata (current_repodata.json): failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /opt/conda/pkgs/cache/9e0f62c3.json
  uid: 1000
  gid: 0

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1000:0 /opt/conda/pkgs/cache/9e0f62c3.json

In general, it's not advisable to use 'sudo conda'.
</code></pre>
<p>Any ideas about how to deal with that issue?</p>

Jordi
<p>If you want to extend the Dockerfile change the user back to root <code>USER 0</code> before installing anything and afterwards back to an unprivileged one <code>USER 1000</code>. If you are running the container or execing into it add <code>--user 0</code> to your command <code>docker run --user 0 zeppelin</code>.</p>
