Giter Club home page Giter Club logo

Comments (13)

lejoko avatar lejoko commented on May 29, 2024 2

Ok. Everything related to Colima works for me with Sonoma 14.1.1 (I still have crashes with rosetta but they're not related to Colima)

from colima.

Westacular avatar Westacular commented on May 29, 2024 2

This comment indicates that the issue was fixed in UTM for a macOS 13.5.1 user by adding --preserve yes to the update-binfmts command.

The relevant Apple documentation effectively says to use --preserve yes for macOS 14 but --preserve no on macOS 13, somewhat contradicting that solution.

Colima doesn't use update-binfmts, and instead injects the equivalent string to binfmt_misc directly, here. The string it's using does not include the P flag (see docs), so it is doing the equivalent of --preserve no.

I'm curious what would happen if that were changed by adding the P flag.

Things are already working in macOS 14, where the Apple docs suggest it should be added; things aren't working in macOS 13 where the Apple docs suggest it should not be added, but anecdotally, adding it does fix this issue. 🤷

from colima.

abiosoft avatar abiosoft commented on May 29, 2024 1

Sonoma 14.1 on an m1 mac mini.

from colima.

tmapes avatar tmapes commented on May 29, 2024 1

I ran into this on a different image (but could actually run mysql:5.7 fine) on 13.6.

Seems like it was fixed by Apple in 14.1

from colima.

elementalvoid avatar elementalvoid commented on May 29, 2024 1

Someone on my team has also experienced this with an AMD64 MySQL container running on an ARM Mac and the vz/rosetta hypervisor.

There's a similar report and some good insights from another project here: utmapp/UTM#5567. They also note that Sonoma 14.1 fix!


Edit: I have also confirmed that my teammate is not on Sonoma.

from colima.

lejoko avatar lejoko commented on May 29, 2024

Tested with (just upgraded) Colima 0.6.1 in the same conditions as above and nothing changed.

from colima.

abiosoft avatar abiosoft commented on May 29, 2024

This actually worked for me.

docker run -it --rm --platform linux/amd64 mysql:5.7

from colima.

lejoko avatar lejoko commented on May 29, 2024

I'm on a M2 MacBook Pro With Ventura 13.6.2, all updates applied to both system and brew. Are you maybe on Sonoma ? I was reluctant to upgrade to Sonoma...

from colima.

abiosoft avatar abiosoft commented on May 29, 2024

@lejoko ideally you should specify the --platform linux/amd64 flag.

from colima.

lejoko avatar lejoko commented on May 29, 2024

It's the same with the --platform linux/amd64. It only removes the warning, but it still crash with the same error. On what OS version did you test ?

from colima.

lejoko avatar lejoko commented on May 29, 2024

Apparently it also works for me with Sonoma 14.1.1. That specific problem seem to exist only with Ventura. I'm currently testing other potentially problematic images.

By the way, big thanks for Colima!!

from colima.

Curtisjk avatar Curtisjk commented on May 29, 2024

I came across this issue today with colima 0.6.7 and Ventura 13.6.3, so is definitely not fixed.

Does anyone know how to apply a workaround?

from colima.

yous avatar yous commented on May 29, 2024

Direct use of lima doesn't have this issue in Ventura.

from colima.

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.