Reputation: 1204
Does Azure App Service only support images stored in Docker when defined using the Docker Compose Preview.
My images are stored in Azure Container Registry (ACR). Yet when I refer to my image stored in ACR using the Docker compose preview, it trys to pull the images from Docker Hub instead, registry-1.docker.io, where they are not stored and fails.
DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/dev/my_container/manifests/latest: unauthorized: incorrect username or password"}
version: '3.3'
services:
container_one:
image: "dev/container_one"
ports:
- "80:80"
restart: always
container_two:
image: "dev/container_two"
ports:
- "81:81"
restart: always
Upvotes: 1
Views: 1104
Reputation: 1204
I needed to include the full link to my ACR. Based on Hong Ooi's comment.
Using my.azurecr.io/dev/container_one
solved my issue. My full configuration now looks like:
version: '3.3'
services:
container_one:
image: "my.azurecr.io/dev/container_one"
ports:
- "80:80"
restart: always
container_two:
image: "my.azurecr.io/dev/container_two"
ports:
- "81:81"
restart: always
Upvotes: 1