# "Strange Things" behind docker build command

**URL:** <https://forums.docker.com/t/strange-things-behind-docker-build-command/22804>\
**Category:** General\
**Created:** [September 30, 2016, 5:06pm UTC](https://forums.docker.com/t/strange-things-behind-docker-build-command/22804 "2016-09-30T17:06:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frjaraur](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/frjaraur/32/7173_2.png) [@frjaraur](https://forums.docker.com/u/frjaraur)\
**Post date:** [September 30, 2016, 5:06pm UTC](https://forums.docker.com/t/strange-things-behind-docker-build-command/22804/1 "2016-09-30T17:06:01Z")

</div>

Hi all,  
I have reproduce a problem that one of my team mates had some time ago. He received an error when building an image from one of my Dockerfiles… We can’t see anything wrong, but he can’t create that image, he always receive a file not found on aufs filesystem when copying one of the files required for that image… It was an X-Files error… but today (after a couple of months) I have the same error when building “dockercoins” example (preparing a class)…

dockercoins/worker$ docker build -t worker .  
Sending build context to Docker daemon 4.608 kB  
Step 1 : FROM python:alpine  
—\> 2ed4f02ea8d4  
Step 2 : RUN pip install redis  
—\> Using cache  
—\> 782aee514fd5  
Step 3 : RUN pip install requests  
—\> Using cache  
—\> c8682b3afce9  
Step 4 : COPY [worker.py](http://worker.py) /  
open /var/lib/docker/aufs/layers/3f4d3ecffd4770e9b4ec8df1732483a32993368893e33f19efd5c816bca87570: no such file or directory

Of course I can build image in any other system … Server has disk space and I can’t find any error in any log …  
Dockerfile is quite simple…

FROM python:alpine  
RUN pip install redis  
RUN pip install requests  
COPY [worker.py](http://worker.py) /  
CMD [“python”, “[worker.py](http://worker.py)”]

Even if I change “COPY [worker.py](http://worker.py) /” to a specific file in root … “COPY [worker.py](http://worker.py) /worker.py”, I get same error…  
But if I change destination dir, it works… I have checked container’s root file-system permissions but they are right… and it builds in any other system I have tried… and of course… same docker version in all tries…

Debugging info …  
DEBU[0010] Calling POST /v1.24/build?buildargs=%7B%7D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&rm=1&shmsize=0&t=worker&ulimits=null  
DEBU[0010] [BUILDER] Use cached version: [/bin/sh -c pip install redis]  
DEBU[0010] [BUILDER] Use cached version: [/bin/sh -c pip install requests]  
DEBU[0010] [BUILDER] Cache miss: [/bin/sh -c #(nop) COPY file:3c29379b0d985e7631a478453e0f831599595e5827f96a558599cb6609eaa9c7 in /]

Many Thanks In Advance and Regards,  
Javier R.

---

<div class="post-metadata">

**Author:** ![frjaraur](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/frjaraur/32/7173_2.png) [@frjaraur](https://forums.docker.com/u/frjaraur)\
**Post date:** [October 8, 2016, 9:03am UTC](https://forums.docker.com/t/strange-things-behind-docker-build-command/22804/2 "2016-10-08T09:03:20Z")

</div>

I can not reproduce the problem because I have reinstalled docker and before that I had to remove all /var/lib/docker because problem persists after first reinstall (without removing old lib docker files…).

Strange behavior … If I get same error again I will notice you.  
Thanls,  
Javier R.

---

<div class="post-metadata">

**Author:** ![frjaraur](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/frjaraur/32/7173_2.png) [@frjaraur](https://forums.docker.com/u/frjaraur)\
**Post date:** [October 11, 2016, 4:47pm UTC](https://forums.docker.com/t/strange-things-behind-docker-build-command/22804/3 "2016-10-11T16:47:56Z")

</div>

Hi I have received an email about an automated build that is having same issue…  
rchive: /CONSUL/consul\_web\_ui.zip  
inflating: index.html  
creating: static/  
inflating: static/application.min.js  
inflating: static/base.css  
inflating: static/base.css.map  
inflating: static/bootstrap.min.css  
inflating: static/consul-logo.png  
inflating: static/favicon.png  
inflating: static/loading-cylon-purple.svg  
Archive: /CONSUL/consul.zip  
inflating: consul  
—\> 6bce6ba85350  
Removing intermediate container ec68c8c1ca58  
Step 8 : VOLUME /CONSUL  
—\> Running in e022a4cfc60d  
—\> 776a30a39a01  
Removing intermediate container e022a4cfc60d  
Step 9 : COPY [entrypoint.sh](http://entrypoint.sh) /entrypoint.sh  
Removing intermediate container a311a421187f  
stat /var/lib/docker/overlay/b32056c2eed4204c4c514a8dd9e0e8f530b57786989d7611e798c1c84d49b7a9/merged/entrypoint.sh: no such file or directory

Entrypoint script is in my code directory and when I build the same image local I haven’t any problem!!!

Many Thanks,  
Javier R.
