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

Support Orbstack on MacOS #76

Open
maxfenton opened this issue Sep 4, 2024 · 7 comments
Open

Support Orbstack on MacOS #76

maxfenton opened this issue Sep 4, 2024 · 7 comments

Comments

@maxfenton
Copy link

Expected

lando would start and run with OrbStack as the running docker provider on MacOS, with its docker symlinked at /usr/local/bin/docker

Issues

  • lando build cannot run unless Docker Desktop for Mac has been installed and run at least once
  • lando start cannot run without errors like this:
  lando ERROR Error: connect ENOENT /var/run/docker.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
From previous event:
    at Landerode.listContainers (/snapshot/cli/node_modules/@lando/core/node_modules/dockerode/lib/docker.js)
    at Landerode.list (/snapshot/cli/node_modules/@lando/core/lib/docker.js)
    at /snapshot/cli/node_modules/@lando/core/lib/engine.js
    at /snapshot/cli/node_modules/@lando/core/lib/router.js
From previous event:
    at Object.eventWrapper (/snapshot/cli/node_modules/@lando/core/lib/router.js)
    at Engine.engineCmd (/snapshot/cli/node_modules/@lando/core/lib/engine.js)
    at Engine.list (/snapshot/cli/node_modules/@lando/core/lib/engine.js)
    at /snapshot/cli/node_modules/@lando/core/hooks/app-find-localhosts.js
    at AsyncEvents.<anonymous> (/snapshot/cli/node_modules/@lando/core/app.js)
    at AsyncEvents.handle (/snapshot/cli/node_modules/@lando/core/lib/events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/events.js
    at process.processImmediate (node:internal/timers:476:21)
From previous event:
    at AsyncEvents.emit (/snapshot/cli/node_modules/@lando/core/lib/events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/app.js
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.run (/snapshot/cli/node_modules/@lando/core/tasks/restart.js)  +6ms
  lando reporting error action to report=true, url=https://metrics.lando.dev, report=true, url=https://metrics.lando.dev +9ms
  lando reported data command=lando restart, context=local, devMode=false, instance=37ac58bbfe1d2edfdbd132cdd8e8d7d19993b33a, nodeVersion=v18.19.1, mode=cli, type=Darwin, platform=darwin, release=23.6.0, arch=arm64, isWsl=false, product=lando, version=3.21.2, message=connect ENOENT /var/run/docker.sock, stack=Error: connect ENOENT /var/run/docker.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
From previous event:
    at Landerode.listContainers (docker.js)
    at Landerode.list (docker.js)
    at /snapshot/cli/node_modules/@lando/core/lib/engine.js
    at /snapshot/cli/node_modules/@lando/core/lib/router.js
From previous event:
    at Object.eventWrapper (router.js)
    at Engine.engineCmd (engine.js)
    at Engine.list (engine.js)
    at /snapshot/cli/node_modules/@lando/core/hooks/app-find-localhosts.js
    at AsyncEvents.<anonymous> (app.js)
    at AsyncEvents.handle (events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/events.js
    at process.processImmediate (timers:476:21)
From previous event:
    at AsyncEvents.emit (events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/app.js
    at process.processTicksAndRejections (task_queues:95:5)
    at async Object.run (restart.js), action=error, created=2024-09-04T17:54:28.132Z +0ms```
@reynoldsalec
Copy link
Member

I believe this is more or less a duplicate of lando/core#138, you ok continuing the convo over there @maxfenton?

@maxfenton
Copy link
Author

Absolutely!

@maxfenton
Copy link
Author

Ok, but actually... having bypassed the problem there, this is an additional issue with lando start -- but maybe core is the right repo and not cli

@reynoldsalec
Copy link
Member

Yeah lando/core is probably more appropriate @maxfenton.

Separately, have you tried symlinking the Orbstack docker.sock location? Something like ln -s ~/.orbstack/run/docker.sock ~/.docker/run/docker.sock, then restarting the Orbstack docker daemon.

@maxfenton
Copy link
Author

@reynoldsalec I hadn't, but I tried it and it got me one step further but it looks like the source of lando pull is explicitly hardcoded to files in Docker Desktop for Mac. :(

@reynoldsalec
Copy link
Member

lando pull on one of the recipes? Would be cool if it bootstrapped a vanilla app ok.

Regardless, I'm guessing there won't be any official support for Orbstack until after Lando v4 is released, that's sucking up most of the dev effort at this point.

@sovetski
Copy link

sovetski commented Nov 5, 2024

It will be very nice to get a support for Orbstack

@pirog pirog transferred this issue from lando/legacy-cli Nov 14, 2024
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

3 participants