Authentication Required During Docker Compose (Failure)
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:
- git clone https://github.com/dfir-iris/iris-web.git
- cd iris-web
- git checkout v2.0.2
- cp .env.model .env
- docker-compose build
- 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.
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
Hello - this comment help me resolving the issue you mentioned: https://github.com/docker/buildx/issues/415#issuecomment-727909659