Closed KatsuoRyuu closed 1 year ago
Were you able to solve this problem somehow?
Unfortunately not. I have instead set my CI/CD system to run that build twice for it to work. This is not a good way to do it but its a fix.
I had the same build error last week... It seems to be related to COPY. I've updated my docker version to 18.05-ce what fixed it. It seems really weird.
Thanks, ill try to update and see if that helps
Let me close this ticket for now, as it looks like it went stale.
Expected behavior
File copied successfully to the container
Actual behavior
Error ERROR: Service 'mail-server' failed to build: failed to export image: failed to create image: failed to get layer sha256:e1421a08ede1f634d64c374175001be92ae4d72c7d681fcac2a78fe5e92b391f: layer does not exist
Steps to reproduce the behavior
Running docker build that copies file:
file contents:
using Dockerfile:
Running docker-compose build, docker-compose up -d or docker build ./ will start building the container, a clean build will stop at opendkim file with the error:
Running it a second time will continue the build, there will be no problems after and the files is copied correctly. If I uncommenting the opendkim file will make it build from clean with no problems.
I have tried renaming the file moving the file and change permission, with no result.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.) Proxmox virtual machine on qEmu