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

Faild to build docker image using Dockerfile #99

Closed
atinfinity opened this issue May 20, 2018 · 2 comments
Closed

Faild to build docker image using Dockerfile #99

atinfinity opened this issue May 20, 2018 · 2 comments

Comments

@atinfinity
Copy link

I tried to build docker image using Dockerfile of CarND-Term1-Starter-Kit.
https://github.com/udacity/CarND-Term1-Starter-Kit

But, I could not build docker image. Please give me some advice.

System information(host PC)

  • Ubuntu 16.04 64bit
  • nvidia-387
  • nvidia-docker2

Steps to reproduce

CPU

$ git clone https://github.com/udacity/CarND-Term1-Starter-Kit.git
$ cd CarND-Term1-Starter-Kit
$ docker build -t udacity/carnd-term1-starter-kit -f Dockerfile.cpu .

GPU

$ git clone https://github.com/udacity/CarND-Term1-Starter-Kit.git
$ cd CarND-Term1-Starter-Kit
$ docker build -t udacity/carnd-term1-starter-kit -f Dockerfile.gpu .

Error message

The following message was displayed.

Traceback (most recent call last):                                       |  14%
  File "/root/miniconda3/envs/carnd-term1/bin/jupyter-nbextension", line 7, in <module>
    from notebook.nbextensions import main
  File "/root/miniconda3/envs/carnd-term1/lib/python3.5/site-packages/notebook/__init__.py", line 25, in <module>
    from .nbextensions import install_nbextension
  File "/root/miniconda3/envs/carnd-term1/lib/python3.5/site-packages/notebook/nbextensions.py", line 23, in <module>
    from jupyter_core.paths import (
ImportError: No module named 'jupyter_core'
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

@Tsuihao
Copy link

Tsuihao commented Jul 15, 2018

I faced the same issue, I think the reason is conda outage.
Add RUN conda update -n base conda -y in the Dockerfile.cpu / Dockerfile.gpu
As shown in the following here: Tsuihao@0687915

And it works!

@mvirgo
Copy link
Contributor

mvirgo commented Nov 19, 2018

We've since updated the conda version in the Dockerfile to avoid this issue, although the solution above should also work.

@mvirgo mvirgo closed this as completed Nov 19, 2018
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

Successfully merging a pull request may close this issue.

3 participants