Skip to content

Local Docker Build does not work #263

@bart-vmware

Description

@bart-vmware

Describe the bug

The instructions for running documentation from a docker container at the end of /README.md:

docker build -t steeltoe-docs .

docker run -d --name local-docs -p 8082:80 steeltoe-docs

Fail with the following error on my system:

C:\Source\Repos\Documentation> docker build -t steeltoe-docs .
[+] Building 4.5s (4/4) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 334B                                                                                                                                                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                                                 0.0s
 => => transferring context: 60B                                                                                                                                                                                                                                                                                  0.0s
 => CANCELED [internal] load metadata for docker.io/library/nginx:1.19                                                                                                                                                                                                                                            4.4s
 => ERROR [internal] load metadata for steeltoe.azurecr.io/documentation-metadata:3.1.3-2.5.5-1                                                                                                                                                                                                                   4.0s
------
 > [internal] load metadata for steeltoe.azurecr.io/documentation-metadata:3.1.3-2.5.5-1:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch anonymous token: unexpected status: 401 Unauthorized

Expected behavior

The commands to succeed without error.

Environment (please complete the following information, if applicable):

  • Platform: PowerShell v7.2.4
  • OS Version: Windows 10 x64

Metadata

Metadata

Assignees

Labels

documentation-pagesImprovements or additions to documentation pagesincorrect-instructionsText does not appear to be correct

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions