How to force pull a docker image from docker hub in azure appservice

gm 10 Reputation points
2023-01-19T10:16:56.3433333+00:00

I have set up an azure web app service. When trying to pull a private image from Docker Hub, it fails with this error

Pulling image: user/image:latest
2023-01-19T08:05:04.619Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/user/image/manifests/latest: unauthorized: incorrect username or password"}

Ive tried changing the credentials, but cant figure out how to tell the app to try and pull the image again. How can you force the app service to pull the image?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,949 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. gm 10 Reputation points
    2023-01-19T14:36:41.67+00:00

    It appears that opening the web SSH (Development Tools -> SSH) forces the webApp to start again and that produces an image pull. I really dont understand how theres no "restart" button

    Also, under Deployment -> Deployment center you can grab the webhook URL and do a POST request against it. That will also trigger an image pull

    2 people found this answer helpful.
    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.