dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.08k stars 184 forks source link

Authentication Required During Docker Compose (Failure) #245

Open n3tl0kr opened 1 year ago

n3tl0kr commented 1 year ago

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):

Additional context Add any other context about the problem here.

whikernel commented 1 year ago

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

OlivierFatou commented 1 year ago

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