Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda create does not work in a container started with docker run --user #86

Open
Atry opened this issue Jun 7, 2018 · 1 comment
Open

Comments

@Atry
Copy link

Atry commented Jun 7, 2018

$ docker run --user "$(id -u)":"$(id -g)" --tty --interactive continuumio/miniconda3:4.4.10 conda create -p /tmp/my_env
Solving environment: failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /.conda/pkgs/urls.txt
  uid: 1008
  gid: 1008

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

  $ sudo chown 1008:1008 /.conda/pkgs/urls.txt

In general, it's not advisable to use 'sudo conda'.

@Atry Atry changed the title conda create does not work when docker run --user conda create does not work in a container started with docker run --user Jun 7, 2018
Atry added a commit to ThoughtWorksInc/offnet that referenced this issue Jun 8, 2018
@OrangeDog
Copy link

If you set CONDA_PKGS_DIRS to a writeable directory, then it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants