【发布时间】:2020-10-27 09:54:34
【问题描述】:
我正在努力解决与容器用户权限相关的一些问题。
我从this dockerfile 创建了一个图像。
如您所见,line 128 正在更改为 USER 1000。
我正在尝试使用这个命令来玩 anaconda:
$ 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'.
关于如何处理该问题的任何想法?
【问题讨论】:
-
conda 可执行文件本身是否会更改用户 ID,也许是通过 set-user-id? unix.stackexchange.com/questions/58168/…
标签: docker kubernetes anaconda apache-zeppelin