Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

805
Visualizações
Azure app Service not picking up Gitlab Container Registry Configuration as Private Repository

I have an application container pushed to a gitlab container registry. I am trying to deploy it into azure web app service as a container. I did the configuration as best as I could understand based on the documentation from azure. But I don't understand what I am missing because azure logs show azure still trying to connect to docker hub registry.

Here consider that image with tag latest is provided i.e image:latest

In the logs I get the following

2019-05-13 09:21:49.741 ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/library/<image-name>/manifests/latest: unauthorized: incorrect username or password"}

2019-05-13 09:21:49.743 ERROR - Pulling docker image <image-name> failed:
2019-05-13 09:21:49.743 INFO  - Pulling image from Docker hub: library/<image-name>
2019-05-13 09:21:50.795 ERROR - DockerApiException: Docker API responded with status code=NotFound, response={"message":"pull access denied for <image-name>, repository does not exist or may require 'docker login'"}

2019-05-13 09:21:50.797 ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)

Can anyone tell me what I might be doing wrong here? I believe the problem is the registry url config. Any help would be appreciated.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

For anyone else who faces the same problem, my problem was that I was giving only the image name, had to put the full name of the image registry registry.gitlab.com/<group name>/<image name>

over 4 years ago · Santiago Trujillo Relatório

0

Since it took me a while to fiddle that together, this is what helped me most. (Thanks @Hassaan for your answer that pointed me in the right direction)

GitLab

You need to be aware of your container registry located in GitLab. Check image naming conventions for that.

If you are using GitLab Cloud registry URL is: https://registry.gitlab.com

Once you logged into GitLab check your project and navigate to "Packages & Registries" and click on "Container Registry".

If you already published an image, it will be shown there in the list. What you see there is what I will call "full-image-name".

It'll be most likely <namespace>/<project>/<image-name>. We need that full-image-name later. Click on that image in that list to get a list of image tags. You will have to selecte a tag to use for later.

If you did not publish an image to that registry yet, check the docs to get started.

Azure Web App

Navigate to your App Service and find "Container settings (Classic)" in the left side menu.

Then simply fill in required data.

  • Server URL: https://registry.gitlab.com
  • Full Image Name and Tag: <full-image-name>:<tag> (see above)

If you are not sure what to put into login and password have a look at how to authenticate with the container registry.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda