runtime icon indicating copy to clipboard operation
runtime copied to clipboard

err: exec: "docker-credential-osxkeychain"

Open clemenko opened this issue 2 years ago • 1 comments

When testing Acron with acorn run . I am getting the following message.

clempro:clemenko rke2 ( 147.182.179.229:6443 ) $ acorn run .
[+] Building 0.4s (3/3) FINISHED                                                                                                                                                                  
 => [internal] load build definition from acorn-dockerfile-3643591740                                                                                                                        0.2s
 => => transferring dockerfile: 65B                                                                                                                                                          0.2s
 => [internal] load .dockerignore                                                                                                                                                            0.2s
 => => transferring context: 2B                                                                                                                                                              0.2s
 => ERROR [internal] load metadata for docker.io/library/nginx:latest                                                                                                                        0.2s
------
 > [internal] load metadata for docker.io/library/nginx:latest:
------
Error: failed to solve: error getting credentials - err: exec: "docker-credential-osxkeychain": executable file not found in $PATH, out: 

Looks like I have an old ~/.docker/config.json that might be causing the error.

Acronfile:

containers: {
 web: {
  image: "nginx"
  ports: publish: "80/http"
 }
}

removing ~/.docker/config.json fixed.

cc: @ibuildthecloud

clemenko avatar Aug 07 '22 15:08 clemenko

from @ibuildthecloud in slack:

I bet the buildkit client is looking for it. Can you put in an issue for this. I'll fix. If you do “acorn run” with a prebuilt image name this won't happen. But you obviously have a catch 22 in that you can’t build an image the first time.

cjellick avatar Aug 08 '22 16:08 cjellick

This should be addressed. moved all aspects of build to server side

cjellick avatar Mar 13 '23 23:03 cjellick

Tested with acorn version - v0.6.0-22-g001834e9+001834e9

There is no dependency on local docker installs anymore.

We are able to build images successfully as part of acorn run , acorn build and acorn pull with no local docker install or when docker is installed but the docker logins credentials are not good.

sangee2004 avatar Mar 16 '23 20:03 sangee2004

@clemenko This issue should be addressed in the latest acorn version - v0.6.0. Please feel free to reopen this issue , If you are still encountering this problem with the latest release.

sangee2004 avatar Mar 16 '23 20:03 sangee2004