Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build failing on new docker-compose.yaml: [internal] load metadata for docker.io/library/gcc:11: #76

Closed
2 tasks done
vnktsh opened this issue Mar 26, 2023 · 2 comments

Comments

@vnktsh
Copy link

vnktsh commented Mar 26, 2023

Bug description

Docker build failing on new docker-compose.yaml

[+] Building 0.3s (2/4)
=> [internal] load build definition from Dockerfile
[+] Building 0.3s (4/4) FINISHED
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 69B
=> [internal] load .dockerignore
=> => transferring context: 69B
=> ERROR [internal] load metadata for docker.io/library/ubuntu:22.04 gcc:11

[internal] load metadata for docker.io/library/ubuntu:22.04:
[internal] load metadata for docker.io/library/gcc:11:
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``

Steps to reproduce

Clean install.
Wipe out old dangling images, containers, networks etc.

  1. Pull the latest code from main (sha 4047fbe)
  2. Run `sudo docker compose build | optionally include [--no-cache]

Environment Information

OS: Apple Silicon MacOS Ventura, M2 Max
sudo docker version
Client:
Cloud integration: v1.0.31
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:35:19 2023
OS/Arch: darwin/arm64
Context: default
Experimental: true

Server: Docker Desktop 4.17.0 (99724)
Engine:
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.18.10
Git commit: 6051f14
Built: Thu Jan 19 17:31:28 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.18
GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Screenshots

No response

Relevant log output

[+] Building 0.3s (2/4)
 => [internal] load build definition from Dockerfile                                                                                                                            0.0s
[+] Building 0.3s (4/4) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                            0.0s
 => => transferring dockerfile: 69B                                                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                                               0.0s
 => => transferring context: 69B                                                                                                                                                0.0s
 => ERROR [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                           0.3s
 => ERROR [internal] load metadata for docker.io/library/gcc:11                                                                                                                 0.3s
------
 > [internal] load metadata for docker.io/library/ubuntu:22.04:
------
------
 > [internal] load metadata for docker.io/library/gcc:11:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``

Confirmations

  • I'm running the latest version of the main branch.
  • I checked existing issues to see if this has already been described.
@vnktsh vnktsh added the bug label Mar 26, 2023
@gaby
Copy link
Member

gaby commented Mar 27, 2023

Are behind a proxy? It's complaining about credentials

@Mattssn
Copy link

Mattssn commented Mar 29, 2023

I am not sure if this will help, but if you are okay with not building the container you can remove the build: context: . dockerfile: Dockerfile target: dev

section and add

image: ghcr.io/nsarrazin/serge:latest to the compose, this is what mine looks like, I have caddy labels added for my reverse proxy and its attached to my docker network, so that may vary for you.

version: "3.9"

services:
  Serge:
    container_name: Serge
    image: ghcr.io/nsarrazin/serge:latest
    restart: unless-stopped
    volumes:
      - datadb:/data/db
      - weights:/usr/src/app/weights/
      - /etc/localtime:/etc/localtime:ro 
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=${TIMEZONE}
    labels:
      caddy: "serge.${DOMAIN}"
      caddy.reverse_proxy: "{{upstreams 8008}}"
    networks:
      - media

@gaby gaby closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants