udacity / CarND-Term1-Starter-Kit

MIT License
495 stars 602 forks source link

Error on docker build Ubuntu 14.04 #43

Closed AndreaIncertiDelmonte closed 7 years ago

AndreaIncertiDelmonte commented 7 years ago

Hi, I'm trying to build the Dockerfile.cpu on my laptop with Ubuntu 14.04 and I get the following error: CondaError: OSError(18, 'Invalid cross-device link') on the command RUN conda env create -f=environment.yml --name carnd-term1.

My docker version: Client: Version: 1.12.6 API version: 1.24 Go version: go1.6.4 Git commit: 78d1802 Built: Tue Jan 10 20:26:30 2017 OS/Arch: linux/amd64

Server: Version: 1.12.6 API version: 1.24 Go version: go1.6.4 Git commit: 78d1802 Built: Tue Jan 10 20:26:30 2017 OS/Arch: linux/amd64

JGuillaumin commented 7 years ago

I have the same problem ..

domluna commented 7 years ago

@AndreaIncertiDelmonte what was the initial command you ran?

AndreaIncertiDelmonte commented 7 years ago

Hi Dom!

I ran docker build -f Dockerfile.cpu -t myuser/myimage:cpu .. The basic docker command to build images.

Thanks Andrea

domluna commented 7 years ago

I'm able to reproduce it. Seems to be an issue with creating an environment during a Docker build with conda 4.3.0. https://github.com/conda/conda/issues/4309. I'll see about reverting back to 4.2.x.

domluna commented 7 years ago

@AndreaIncertiDelmonte I updated the file, works on my end now.

JGuillaumin commented 7 years ago

Thank you very much ! It works for me !

AndreaIncertiDelmonte commented 7 years ago

Hi @domluna, your fix works also for me :) Tnks Andrea