pierrecdn / phpipam

phpIPAM Docker image
GNU Lesser General Public License v3.0
94 stars 111 forks source link

no such file or directory #6

Closed zurekx closed 7 years ago

zurekx commented 7 years ago

Docerfile is not working I have this error Step 10/12 : RUN tar -xzf /tmp/${PHPIPAM_VERSION}.tar.gz -C ${WEB_REPO}/ --strip-components=1 ---> Running in f74eb8a4abc5 tar (child): /tmp/1.2.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now The command '/bin/sh -c tar -xzf /tmp/${PHPIPAM_VERSION}.tar.gz -C ${WEB_REPO}/ --strip-components=1' returned a non-zero code: 2

pierrecdn commented 7 years ago

This is probably because you had an issue just before during the fetch of the phpipam project itself:

ENV PHPIPAM_SOURCE https://github.com/phpipam/phpipam/archive/
(...)
ADD ${PHPIPAM_SOURCE}/${PHPIPAM_VERSION}.tar.gz /tmp/

I don't understand why the Docker daemon did not fail during the ADD in that case. Or you have a network config involving a proxy in your local environment or something like that.

Anyway, it seems to work usually, according to Docker Hub build details.