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

[Bug] can't run docker image #6689

Open
rafaelfliu opened this issue Sep 24, 2024 · 5 comments
Open

[Bug] can't run docker image #6689

rafaelfliu opened this issue Sep 24, 2024 · 5 comments
Labels
bug Fix bug docker Docker-related work

Comments

@rafaelfliu
Copy link

rafaelfliu commented Sep 24, 2024

Describe the bug
Pulled the docker image successfully, but unable to run a container off the image.
Encountered the following error message:

The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v4) and no specific platform was requested.
exec /usr/local/bin/uvicorn: exec format error

To Reproduce

  1. docker pull ghcr.io/openbb-finance/openbb-platform:latest
  2. docker run --rm -p 8000:8000 ghcr.io/openbb-finance/openbb-platform

Screenshots
N.A.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1

Additional context
N.A.

@deeleeramone deeleeramone added the bug Fix bug label Sep 24, 2024
@tebrizetayi
Copy link

It does not work for me either

@ash34
Copy link

ash34 commented Oct 2, 2024

Because the docker image has been created for an ARM architecture only. It would work on a raspberry pi but most of us are on X86/AMD64.

@deeleeramone deeleeramone added the docker Docker-related work label Oct 7, 2024
@SurvivaLlama
Copy link

any chance we can get a docker for X86?

@deeleeramone
Copy link
Contributor

Alternatively, you can use the Dockerfile and spec it to your specific needs.

@asfourco
Copy link

asfourco commented Oct 18, 2024

@deeleeramone, not sure this should be classified as a bug unless the CI/CD tools are meant to deploy multi-arch docker images.

The manual steps to build would be (docs reference):

  1. Clone the repo
  2. Assuming you have docker setup on your machine, rebuild for your machine using the command without using the existing image: docker buildx build --platform linux/amd64 -f build/docker/platform.dockerfile -t openbb-platform:latest --no-cache . Make sure to run this from the root of the OpenBB project
  3. Run the container: docker run --rm -p 8000:8000 -v ~/.openbb_platform:/root/.openbb_platform openbb-platform:latest
  4. confirm by navigating to http://localhost:8000/docs this should return the openAPI documentation

N.B. if you get the message that http://deb.debian.org cannot resolve, then modify the build command by adding the following flag --network=host, i.e.,
docker buildx build --platform linux/amd64 -f build/docker/platform.dockerfile -t openbb-platform:latest --network=host --no-cache .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug docker Docker-related work
Projects
None yet
Development

No branches or pull requests

6 participants