Azure Web App cant pull image from Azure Container Registry after installation @nest/jwt package
Андрій Андреєв
0
Reputation points
I've create Azure Container registry. Enabled admin user. Login in docker:
docker login testcontainerforapp.azurecr.io
After that i build image:
docker image build -t testcontainerforapp.azurecr.io/sample/prod:latest .docker push testcontainerforapp.azurecr.io/sample/prod:latest
than I add github actions with acr
And in github actions deploy was success
But in Azure web app i got an error:
2023-10-11T14:19:21.839Z INFO - cb02cb2e1d84 Extracting 81MB / 81MB 2023-10-11T14:19:21.922Z INFO - 2023-10-11T14:19:21.923Z ERROR - failed to register layer: Error processing tar file(exit status 1): Container ID 718322462 cannot be mapped to a host IDErr: 0, Message: failed to register layer: Error processing tar file(exit status 1): Container ID 718322462 cannot be mapped to a host ID 2023-10-11T14:19:21.925Z INFO - Pull Image failed, Time taken: 0 Minutes and 10 Seconds 2023-10-11T14:19:21.926Z ERROR - Pulling docker image testcontainerforapp.azurecr.io/testcontainerforapp/sample/prod:c612fb130fd49939cd0f8ad044a20a0ca8a02c64 failed: 2023-10-11T14:19:22.049Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Head \"https://testcontainerforapp.azurecr.io/v2/testcontainerforapp/sample/prod/manifests/c612fb130fd49939cd0f8ad044a20a0ca8a02c64\": unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information."} 2023-10-11T14:19:22.050Z WARN - Image pull failed. Defaulting to local copy if present. 2023-10-11T14:19:22.055Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository) 2023-10-11T14:19:27.534Z INFO - Stopping site testappwithdockercontainer because it failed during startup.
And without @nest/jwt all works fine. The same problem i have with firebase-admin npm package.