Share via

Crossplatform docker compose with aci

Éric Louvard 21 Reputation points
2022-04-08T13:22:52.263+00:00

Hello,

is it possible to use "docker compose" to run containers from different platforms, in aci?

for exemple:

version: '3'
services:
aci-hellolx:
image: hello-world:linux
container_name: hellolx

aci-hellowin:
image: hello-world:nanoserver
container_name: hellowin

In this example aci always try to run the containers with Linux server

PS C:\Projects\esPrototypes\Docker-Compose\Azure\Hello-World-Winlx> docker context list
NAME TYPE DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
default moby Current DOCKER_HOST based configuration npipe:////./pipe/docker_engine swarm
protoacicontext * aci rg-containers@westeurope
PS C:\Projects\esPrototypes\Docker-Compose\Azure\Hello-World-Winlx> docker compose up
[+] Running 0/1

  • Group hello-world-winlx Error 3.0s
    containerinstance.ContainerGroupsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ImageOsTypeNotMatchContainerGroup" Message="The container image 'hello-world:nanoserver' doesn't support specified OS 'Linux' for container group 'hello-world-winlx'."

Links:

Regards

Azure Container Instances

Answer accepted by question author

KarishmaTiwari-MSFT 20,862 Reputation points Microsoft Employee Moderator
2022-04-11T19:31:50.107+00:00

@Éric Louvard Thanks for posting your query.

Issue summary:
Is it possible to use "docker compose" to run containers from different platforms/Windows?

Recommendation:
It is currently not supported for Windows containers. This is a feature request for Docker mainly and not ACI.

Here is the work item on the Docker-ACI roadmap tracking this feature request :
https://github.com/docker/compose-cli/issues/657
https://github.com/docker/roadmap/issues/138
You can add your comment there so that the Docker team consider prioritizing this as part of their roadmap.

Hope that helps answer your question. If you have further questions, please let me know and I would be happy to help.

Was this answer helpful?


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.