iris-web icon indicating copy to clipboard operation
iris-web copied to clipboard

Authentication Required During Docker Compose (Failure)

Open n3tl0kr opened this issue 2 years ago • 2 comments

Describe the bug Following the initial build procedure and running into an error during docker-compose build regarding an authentication required (401) failure.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/dfir-iris/iris-web.git
  2. cd iris-web
  3. git checkout v2.0.2
  4. cp .env.model .env
  5. docker-compose build
  6. docker-compose up

Expected behavior Expected Docker Compose to complete successfully.

Screenshots

❯ docker-compose build
[+] Building 4.4s (4/4) FINISHED
 => [internal] load build definition from Dockerfile                                                                                     0.0s
 => => transferring dockerfile: 32B                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                        0.0s
 => => transferring context: 2B                                                                                                          0.0s
 => ERROR [internal] load metadata for docker.io/library/postgres:12-alpine                                                              4.3s
 => [auth] library/postgres:pull token for registry-1.docker.io                                                                          0.0s
------
 > [internal] load metadata for docker.io/library/postgres:12-alpine:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/postgres/manifests/sha256:29d117e533ca9fde2a702dd4e1c730fac1cf3aef77b5e8dff46d4bafb1fd188a: 401 Unauthorized - Server message: unauthorized: authentication required
╭─ ~/Tools/iris-web on #v2.1.0                                                                                            took 5s at 13:41:50
╰─❯

Desktop (please complete the following information):

  • OS: macOS
  • Version 13.3.1

Additional context Add any other context about the problem here.

n3tl0kr avatar May 16 '23 17:05 n3tl0kr

Hi @n3tl0kr

It would look like the issue is not directly related to IRIS but Docker.
Are you able to build any other docker on your system?

You may want to see this issue: https://github.com/docker/buildx/issues/415.
Let us know if goes.

Cheers

whikernel avatar May 17 '23 06:05 whikernel

Hello - this comment help me resolving the issue you mentioned: https://github.com/docker/buildx/issues/415#issuecomment-727909659

OlivierFatou avatar May 23 '23 20:05 OlivierFatou