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

WARNING conda.core.envs_manager:register_env(46) #140

Open
joergklein opened this issue Aug 15, 2019 · 2 comments
Open

WARNING conda.core.envs_manager:register_env(46) #140

joergklein opened this issue Aug 15, 2019 · 2 comments

Comments

@joergklein
Copy link

I try to run an own docker image of miniconda. I get this warning. How can I solve this problem?

Executing transaction: ...working... WARNING conda.core.envs_manager:register_env(46): Unable to register environment. Path not writable or missing.
  environment location: /opt/conda
  registry file: /root/.conda/environments.txt

Here is my Dockerfile

FROM debian:stretch-slim

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
ENV MINICONDA_VERSION Miniconda3-4.7.10

RUN apt-get update --fix-missing \
    && apt-get install -y wget bzip2 ca-certificates curl git \
    && apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN wget --quiet https://repo.anaconda.com/miniconda/${MINICONDA_VERSION}-Linux-x86_64.sh -O ~/miniconda.sh \
    && /bin/bash ~/miniconda.sh -b -p /opt/conda \
    && rm ~/miniconda.sh \
    && /opt/conda/bin/conda clean -all \
    && ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh \
    && echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc \
    && echo "conda activate base" >> ~/.bashrc

ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini

ENTRYPOINT [ "/usr/bin/tini", "--" ]
CMD [ "/bin/bash" ]


@ecatanzani
Copy link

Try to create the .conda in /root/ manually before installing anaconda.
For me it works

@jonathangoorin
Copy link

I had similar problem since the .conda/environments.txt was created by installer and was owned by root

I've chown it to my current user and it was solved
the scrit: sudo chown .conda/environments.txt

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

3 participants