pull access denied repository does not exist or may require docker login

前端 未结 16 1934
悲哀的现实
悲哀的现实 2021-02-02 05:18

I am using Laravel 4.2 with docker. I setup it on local. It worked without any problem but when I am trying to setup online using same procedure then I am getting error

16条回答
  •  名媛妹妹
    2021-02-02 05:30

    I had this because I inadvertantly remove the AS tag from my first image:

    ex:

    FROM mcr.microsoft.com/windows/servercore:1607-KB4546850-amd64
    ...
    .. etc ...
    ...
    FROM mcr.microsoft.com/windows/servercore:1607-KB4546850-amd64
    COPY --from=installer ["/dotnet", "/Program Files/dotnet"]
    ... etc ...
    

    should have been:

    FROM mcr.microsoft.com/windows/servercore:1607-KB4546850-amd64 AS installer
    ...
    .. etc ...
    ...
    FROM mcr.microsoft.com/windows/servercore:1607-KB4546850-amd64
    COPY --from=installer ["/dotnet", "/Program Files/dotnet"]
    ... etc ...
    

提交回复
热议问题