image operating system "linux" cannot be used on this platform

Madhusudhan Reddy 1 Reputation point
2020-09-18T03:54:19.167+00:00

I Tried to add basic push and pull commands from azure ACR but it throws the error like
2020-09-18T03:30:24.0943834Z image operating system "linux" cannot be used on this platform
2020-09-18T03:30:24.1065445Z Image Pulled
2020-09-18T03:30:24.4693449Z Error response from daemon: No such image: madhutest.azurecr.io/madhutest:latest

When i see the agent pool looks like its windows
I have created a new agent (Linux)
But i want to run only stages task on it , As the pipeline has dependency on windows VM

"docker pull madhutest.azurecr.io/madhutest:latest"
this is the basic command i used ,

Please suggest if we can change the command so that it works on windows agent
or
can configure agent only for this specific stage in pipeline

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
672 questions
{count} votes

2 answers

Sort by: Most helpful
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2020-09-18T18:29:04.8+00:00

    @Madhusudhan Reddy Firstly, apologies for the delay in responding on this and any inconvenience this issue may have caused

    Docker for windows allows switching between Linux containers and native Windows containers; if you want to use Linux containers (such as Debian), make sure you enabled that mode.

    You can refer to this doc as well for more information on same.

    Similar issue has been reported on this GitHub thread as well.

    This GitHub thread will give you more insights as well.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    0 comments No comments

  2. Bogdan Buczek 1 Reputation point
    2021-07-06T19:52:45.93+00:00

    You may have to run the command line where you calling the "docker pull ..." as administrator.

    0 comments No comments