lichess-org / lila-docker

Lichess local development using Docker Compose.
GNU Affero General Public License v3.0
44 stars 44 forks source link

Python error when trying to setup mobile #83

Closed prolificcoder closed 6 months ago

prolificcoder commented 6 months ago

I am setting up local docker for flutter mobile app and seeing the following error

 => [python internal] load build definition from python.Dockerfile                                                              0.0s
 => => transferring dockerfile: 231B                                                                                            0.0s
 => [ui internal] load build definition from ui.Dockerfile                                                                      0.0s
 => => transferring dockerfile: 383B                                                                                            0.0s
 => ERROR [python internal] load metadata for docker.io/library/python:3.12.3-alpine3.19                                        0.1s
 => ERROR [ui internal] load metadata for docker.io/library/node:20.12.2-bookworm-slim                                          0.1s
 => ERROR [python internal] load metadata for docker.io/library/eclipse-temurin:22_36-jdk-alpine                                0.1s
------
 > [python internal] load metadata for docker.io/library/python:3.12.3-alpine3.19:
------
------
 > [ui internal] load metadata for docker.io/library/node:20.12.2-bookworm-slim:
------
------
 > [python internal] load metadata for docker.io/library/eclipse-temurin:22_36-jdk-alpine:
------
failed to solve: node:20.12.2-bookworm-slim: failed to resolve source metadata for docker.io/library/node:20.12.2-bookworm-slim: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

Do i need specific version of python or node? I have node v22.0.0 not sure why the error is specifying other node version.

benediktwerner commented 6 months ago

lila-docker runs everything inside Docker so your locally installed Python or Node is irrelevant. This looks like an issue with your Docker installation or configuration though.

It fails to download all the images from Docker Hub because of:

error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

prolificcoder commented 6 months ago

thanks for the prompt, i went further now after seraching for this error and found this fix for mac

https://github.com/docker/docker-credential-helpers/issues/149#issuecomment-566832756

prolificcoder commented 6 months ago

Edit the file "~/.docker/config.json" and delete the following JSON key/value: "credsStore" : "desktop",