question

DiazWilliam-6499 avatar image
0 Votes"
DiazWilliam-6499 asked Sumarigo-MSFT edited

switching docker in windows-latest microsoft hosted agent to run linux container

I have a pipeline that is using a windows-latest microsoft agent. one of the tasks is a powershell script that runs a small application using docker. however the docker in the agent is set to windows containers, but the application is in a linux container. How do I switch the docker in the agent from windows to linux?

I found online that one can switch with dockerCLI.exe but i didn't find DockerCLI.exe installed on the agent. Thanks

azure-filesdotnet-ad-docker
· 3
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.

@DiazWilliam-6499 We are trying to repro the issue my our end. In mean while can you try the suggestions mentioned here : https://stackoverflow.com/questions/57081352/docker-command-line-to-switch-to-running-linux-containers-on-windows-core-machin/60029319#60029319 and let me know the status.

Looking forward for you reply

0 Votes 0 ·

Thanks for the reply. @Sumarigo-MSFT

On the first answer the last response indicates that DockerCLI is only installed with "Docker Desktop for Windows". We looked around at the different folders in Program files on the MS agent and we could not find DockerCLI.exe.

On the Second answer It mentions installing Docker Enterprise. We are running a Microsoft Hosted Agent. not sure how to install this Package. If you think this is worth trying please indicate how.

On the Third answer they mention DockerCLI but we could not find that in the MS Hosted Agent.

Thanks in advance.

0 Votes 0 ·

@DiazWilliam-6499 I wish to engage with you offline for a closer look and provide a quick and specialized assistance, please send an email with subject line “Attn:subm” to AzCommunity[at]Microsoft[dot]com referencing this thread and the Azure subscription ID, I will follow-up with you. Once again, apologies for any inconvenience with this issue.
Thanks for your patience and co-operation.

0 Votes 0 ·

0 Answers