question

MadhusudhanReddy-8845 avatar image
0 Votes"
MadhusudhanReddy-8845 asked BogdanBuczek-7508 answered

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

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MadhusudhanReddy-8845 Any update on the issue?

If the suggested response helped you resolve your issue, do click on "Mark as Answer" that helped you for benefit of the community.

Thanks.

0 Votes 0 ·
prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@MadhusudhanReddy-8845 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



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BogdanBuczek-7508 avatar image
0 Votes"
BogdanBuczek-7508 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.