failed to export image: failed to create image: failed to get layer sha256:xxx: layer does not exist
if you see above issue when you are building your docker, and it works in local but not on CI or other computers.
First check the log and see the last command it was running.
My command was ADD, some other people were facing COPY. and multi ADD or COPY.
to fix you can just add "RUN true" between ADD or COPY