I think I’m just stupid but I dont get it why it dosent work.
I have my dockerfile with a
clone.sh will just be copied in the workdir and it works.
But at the build moment if it comes to the 2nd last line:
It copies everything via rsync from a imageserver to the container.
The output is correct and the data transfer is sucessfull.
rsync -avzbe "ssh -i mykey -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 22" email@example.com:/path/to/my/files/* . 2>&1
After this appears this:
sent 885,567 bytes received 2,730,495,466 bytes 10,903,716.70 bytes/sec total size is 6,037,328,207 speedup is 2.21 ---> 20d5a26839f6
So it was sucessfull.
In the last line of the dockerfile is a RUN ls and it shows only the
If I just start a container with this image, only the
And now it comes crazy:
If I execute the
clone.sh in the container self via docker exec -it mycontainer bash and then ./clone.sh it works without any problem and the files are there.
So TL;DR Version:
Dockerfile rsync dosent work. No files are there
Via manual container exec did it work.