Giter VIP home page Giter VIP logo

Comments (10)

michal-sankot avatar michal-sankot commented on June 16, 2024 1

ok, thanks 👍

it worked with:

docker run --platform linux/arm64/v8 -p 8529:8529 -e ARANGO_ROOT_PASSWORD=openSesame arangodb/arangodb:3.11.2

it may be handy to add it as a note to https://www.arangodb.com/download-major/docker/ so that others on Mx don't hit the same issue.

from arangodb-docker.

tianon avatar tianon commented on June 16, 2024 1

Was there any investigation done into why it's choosing linux/amd64 on a linux/arm64/v8 host? Docker shouldn't do that, and I've indeed verified that Docker pulls the correct thing on a native host. 😕 Is it possible your Docker VM was running in x86 mode or something somehow? Was this on Docker Desktop? A hand-maintained VM? There's a pretty serious bug here somewhere, and I think it's one worth pulling on. 😅

from arangodb-docker.

dothebart avatar dothebart commented on June 16, 2024

Hi,
you need to make sure that the ARM-version of the container is used.
If it pulls x86, Rosetta is ran, which doesn't implement some cpu opcodes - hence you get SIG_ILL.

from arangodb-docker.

dothebart avatar dothebart commented on June 16, 2024

@tianon this seemed to be a MacOS host; It has a Rossetta x86 emulation by default. To the MacOS user it seems to be more or less opaque which binary he's running - unless its x86 and demands AVX2 - which isn't implemented in Rosettta.
So @michal-sankot would probably need to revalidate which docker etc. was in use on his machine.

from arangodb-docker.

michal-sankot avatar michal-sankot commented on June 16, 2024

hey, i can validate it. though i'm not strong with docker. so if you give me steps/commands to run, i happily fire them to check it.

from arangodb-docker.

michal-sankot avatar michal-sankot commented on June 16, 2024

i've listed defualt vars (on mac) and it sets default docker platform to linux/amd64. so that's why it assumed platform to be amd64 while it's arm (M1 chip).

DOCKER_DEFAULT_PLATFORM=linux/amd64

from arangodb-docker.

dothebart avatar dothebart commented on June 16, 2024

can you file the docker binary? is it ARM? or is it M1? or is it a fat binary?

from arangodb-docker.

michal-sankot avatar michal-sankot commented on June 16, 2024

it's ARM

/usr/local/bin/docker: Mach-O 64-bit executable arm64

from arangodb-docker.

tianon avatar tianon commented on June 16, 2024

😬 setting DOCKER_DEFAULT_PLATFORM on your host in this way is very very extremely not recommended (I think it might not even be an officially documented environment variable for exactly that reason)

from arangodb-docker.

michal-sankot avatar michal-sankot commented on June 16, 2024

hmm, i was using intel mac before, so maybe it got carried over when migrating to m1 model 🤔

from arangodb-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.