ERROR: failed to solve: error getting credentials - err: exit status 1, out: ``

Open
#434 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, node.js
Domain
devops

Research direction

Begin with the Dockerfile and the sudo docker build -t getting-started . command shown; reproduce the current credential error and inspect Docker Desktop's image-pull or authentication setup. Done means the getting-started build completes without the credential-helper failure, with any required repository guidance captured in the issue.

Written by the indexing model from the issue text.

Description

Please help I am stucking at build docker file

vedaxm1@VedaXs-MacBook-Pro getting-started-app % sudo docker build -t getting-started .
Password:
[+] Building 0.0s (1/1) FINISHED                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                        0.0s
 => => transferring dockerfile: 31B                                                                         0.0s
ERROR: failed to solve: the Dockerfile cannot be empty

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/pi400i08slfpeiilxitjv32t9
vedaxm1@VedaXs-MacBook-Pro getting-started-app % sudo docker build -t getting-started .
[+] Building 0.9s (1/2)                                                                     docker:desktop-linux
[+] Building 1.1s (2/2) FINISHED                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                        0.0s
 => => transferring dockerfile: 181B                                                                        0.0s
 => ERROR resolve image config for docker.io/docker/dockerfile:1                                            1.0s
------
 > resolve image config for docker.io/docker/dockerfile:1:
------
Dockerfile:1
--------------------
   1 | >>> # syntax=docker/dockerfile:1
   2 |     
   3 |     FROM node:18-alpine
--------------------
ERROR: failed to solve: error getting credentials - err: exit status 1, out: ``

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/ozvmmc2zq3qz5njj8kpth66p8
Dominant language
JavaScript
Stars
3.1k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/getting-started

All issues in docker/getting-started

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.