Issue with ACR and dockerfile

sns 9,251 Reputation points
2023-07-22T16:18:36.8266667+00:00

I have executed following command and code is there ausewebmart file.

User's image

acr name I have created is acr12345678910

and here is the docker file.

User's image

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
{count} votes

Answer accepted by question author
  1. RevelinoB 3,685 Reputation points
    2023-07-22T17:36:52.2433333+00:00

    Hi Sns,

    Based on the command and Dockerfile you provided, it appears there is a typo in the command, which is likely causing the error. The issue is with the --file argument in the acr build command. The correct argument is -f (or --file), not -file.

    Here is the corrected command:

    acr build acrtasks/ausemartweb:1 --registry acr12345678910 -f Dockerfile

    I hope this helps?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.