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

Error getting credentials on m1 mbp #9

Open
GravityLabLLC opened this issue Aug 16, 2023 · 2 comments
Open

Error getting credentials on m1 mbp #9

GravityLabLLC opened this issue Aug 16, 2023 · 2 comments

Comments

@GravityLabLLC
Copy link

Output from when trying to run it on an m1 mbp, with docker-compose installed with brew and the command run from inside the root directory after cloning it. Docker Desktop is running, but I'm not signed in. Does that matter? Thank you for your time.

docker-compose up -d
Building llama-gpt-api
[+] Building 0.2s (3/3) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 689B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for ghcr.io/abetlen/llama-cpp-python:latest 0.2s

[internal] load metadata for ghcr.io/abetlen/llama-cpp-python:latest:


Dockerfile:8

6 | ARG MODEL_DOWNLOAD_URL=https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGML/resolve/main/nous-hermes-llama-2-7b.ggmlv3.q4_0.bin
7 |
8 | >>> FROM ${IMAGE}
9 |
10 | ARG MODEL_FILE

ERROR: failed to solve: ghcr.io/abetlen/llama-cpp-python:latest: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
ERROR: Service 'llama-gpt-api' failed to build : Build failed

@mayankchhabra
Copy link
Member

Interesting. You shouldn't need credentials to access it. In that case, the issue might be related to the Docker configuration. I'd recommend checking your Docker configuration file (usually located at ~/.docker/config.json). If there's an entry for "credsStore" or "credentialHelpers", try removing it temporarily and then restart Docker. This will prevent Docker from trying to use a credential helper when it's not necessary for public images.

@PeteInBrissie
Copy link

That fixed it on an Intel Mac, but only if you DON'T restart Docker. It will add the line back in on restart.

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