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

Docker detection is broken on Mac OS X #2226

Open
dprotaso opened this issue Mar 13, 2024 · 2 comments
Open

Docker detection is broken on Mac OS X #2226

dprotaso opened this issue Mar 13, 2024 · 2 comments

Comments

@dprotaso
Copy link
Member

I have Docker Intel Mac installed (Docker Desktop 4.28.0 (139021) ) and the latest func (main@09537e382daa74fb58ffc11d7aa0929cd2729bd4) complains about DOCKER_HOST not being found

% func build
Building function image
Error: cannot create docker client: docker/podman API not available
Possible causes:
  The docker/podman daemon is not running.
  The DOCKER_HOST environment variable is not set.

It looks like Docker for Mac now supports different context

% docker context ls
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                                        KUBERNETES ENDPOINT   ORCHESTRATOR
default             moby                Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
desktop-linux *     moby                Docker Desktop                            unix:///Users/dprotasowski/.docker/run/docker.sock
orbstack            moby                OrbStack                                  unix:///Users/dprotasowski/.orbstack/run/docker.sock
@dprotaso
Copy link
Member Author

I don't believe I added desktop-linux context - I'm assuming it came from upgrading Docker Desktop

@lkingland
Copy link
Member

lkingland commented Mar 14, 2024

I was under the impression you're attempting to use the "host" builder? If so, then the default builder is still either Pack or S2I, so you'll need to either explicitly choose the builder with --builder=host, or set the environment variable FUNC_BUILDER=host, or set a global default in ~.config/func/config.yaml of builder: host

Leaving this open, however, since this needs validation as a bug for those builders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ⭐ New
Development

No branches or pull requests

2 participants