Run macOS in a Docker Container

(github.com)

31 points | by fultonb 239 days ago

4 comments

  • diffeomorphism 238 days ago
    That does not seem to actually be "in a docker container"?

    It is just using docker to run the VM software (qemu with kvm) and runs macOS in that VM.

    It is conveniently packaged up, but the title is very, very misleading.

  • acheong08 236 days ago
    https://github.com/sickcodes/Docker-OSX seems more established. I used it a while back when I was in a country where that was legal. These days I just use GitHub Actions instead.
  • popalchemist 239 days ago
    But, why?
    • schainks 239 days ago
      A dockerized Mac OS lets you perform automated testing without paying for the hardware, which is what you usually have to do.
      • pjmlp 238 days ago
        Which in the countries where EULA's have a legal value, it is considered a crime, as Mac OS can only be virtualised in Apple hardware.
        • joseda-hg 238 days ago
          Creating a separate comment for this idea, but would virtualizing other versions of MacOS/iOS on say a Mac Mini so you can do multiple versions (And maybe iOS, by extension) and such in parallel would ostensibly be legal As long as you're running Asahi Linux as your Host OS
          • minhaz23 238 days ago
            Can you expand on that? Why does it have to be a mac Mini? And why the asahi distro?

            Sorry just genuinely curious and dont know myself

            • mdaniel 238 days ago
              > Why does it have to be a mac Mini?

              The mini is usually cost competitive as an entry Mac, and one doesn't need a fancy screen to drive up the price

              > And why the asahi distro?

              Well, in the context of this specific repo, one needs docker which needs Linux but generic Linux on Mac hardware can be iffy about having all the hardware working. I've never tried Asashi in order to speak to it but I believe that's one of their goals

        • joseda-hg 238 days ago
          Honest question, what happens if you set up a VPS in a country where EULA's don't? You get all the benefits and none of the repercusion, yes?
          • pjmlp 238 days ago
            That is up for a judge, and legal agreements between countries, to decide upon.
        • tiagod 238 days ago
          Something being illegal doesn't always mean it's a crime.
          • pjmlp 238 days ago
            That is exactly the definition, which you can happily discuss during a court hearing session.
            • tiagod 238 days ago
              It's not, at least where I live (Portugal). For example, drinking and driving is a "contra-ordenação" up until 1.2g/L, where it becomes a crime. Same with many other things.

              Possession and consumption of illegal drugs was also decriminalized, but it's still illegal (just not a crime).

              Not all legal systems are the same.

        • Malidir 238 days ago
          Whats the punishment?
    • ChrisRR 238 days ago
      Why not?
    • Malidir 238 days ago
      Test on Safari for one?
  • lodoggero2019 233 days ago
    [dead]