docker push windowsservercore : skipping foreign layer, fail pull in bitbucket

Ahmed Ayadi 1 Reputation point
2023-01-06T08:14:10.987+00:00

Hello

I build locally a docker image from mcr.microsoft.com/windows/servercore:ltsc2019

I pushed this image to my Azure Container Registry

When I pushed this image, I have this message "skipping foreign layer", but my image is pushed and sh256 is generated

I added login parameters to the BB environment

When I try to pull this image from my BB pipe, I have this message:

rpc error: code = Unknown desc = failed to pull and unpack image "xxxxx.azurecr.io/imgvs2017:v1": failed to extract layer sha256:2f7d24a: link /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/2521/fs/Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/2521/fs/Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory: unknown

Did you have an explanation or how to fix it?

Regards,

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
511 questions
{count} votes

2 answers

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-01-06T22:32:55.103+00:00

    @Ahmed Ayadi
    Based on the errors you are receiving I believe this might be related this being a Windows container. Please double check the requirements and configuration here. Users here faced similar issues which were resolved by manually switching to Windows container in Docker. I am not familiar with Bitbucket, but perhaps there is a similar configuration that needs to be done. I would recommend reaching out to the Bitbucket community if you continue to face issues.


    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. Ahmed Ayadi 1 Reputation point
    2023-01-09T08:55:09.783+00:00

    Hi @deherman-MSFT

    Thanks for your answer, the build of the image is done well, and the copy to ACR also
    The real problem is produce when I try to pull the image (my or official Microsoft) in Bitbucket pipe.
    Don't have any example or link to show the integration in Bitbucket?
    I submit also the question to Bitbucket community

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.