Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operating system is not supported #11

Open
sunwu51 opened this issue Dec 28, 2022 · 3 comments
Open

operating system is not supported #11

sunwu51 opened this issue Dec 28, 2022 · 3 comments

Comments

@sunwu51
Copy link

sunwu51 commented Dec 28, 2022

Ubuntu x86_64, running docker compose up got a msg operating system is not supported

$ uname -a
Linux 5.4.0-126-generic #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
 => [build 1/4] COPY Cargo.toml orders.json update_order.json .                                                                                          0.0s
 => [build 2/4] COPY src ./src                                                                                                                           0.0s
 => [build 3/4] RUN --mount=type=cache,target=/usr/local/cargo/git/db     --mount=type=cache,target=/usr/local/cargo/registry/cache     --mount=type=c  68.5s
 => [build 4/4] RUN /root/.wasmedge/bin/wasmedgec target/wasm32-wasi/release/order_demo_service.wasm order_demo_service.wasm                            66.8s
 => [stage-2 1/1] COPY --link --from=build /src/order_demo_service.wasm /order_demo_service.wasm                                                         0.0s
 => ERROR exporting to image                                                                                                                             0.1s
 => => exporting layers                                                                                                                                  0.1s
 => => writing image sha256:8139f0063222ee1099fe0d240389b13757f2257b6a00911221bea050565351f2                                                             0.0s
------
 > exporting to image:
------
failed to solve: operating system is not supported
@SAtacker
Copy link

SAtacker commented Feb 20, 2023

This is because platform option is not getting passed it was removed in docker compose v3.
Ref - docker/compose#5985
https://devblogs.microsoft.com/premier-developer/mixing-windows-and-linux-containers-with-docker-compose/
I think we might need to fix the BUILDPLATFORM argument.
Also it is claimed that docker-compose is supposed to be used and not docker compose
CC @juntao

@hydai
Copy link
Member

hydai commented Aug 25, 2023

Hi @sunwu51
Could you please provide the output of docker version and docker info?

I am using docker desktop on macOS and docker on Linux with the same command, docker compose up, and it works without issues. I am wondering if this issue may be related to the docker version.

@t00350320
Copy link

for me,
1、install docker desktop , https://docs.docker.com/desktop/install/linux-install/
docker-desktop-4.24.2-amd64.deb
2、enable wasm https://wasmedge.org/docs/start/build-and-run/docker_wasm/
this issue disappears

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants