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

"Parsed entitlements" and "in: []string{}" debug prints after upgrading docker #3015

Closed
3 tasks done
arvid-norlander opened this issue Feb 20, 2025 · 3 comments · Fixed by #3017
Closed
3 tasks done

Comments

@arvid-norlander
Copy link

arvid-norlander commented Feb 20, 2025

Contributing guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Since upgrading the docker package today I'm getting this at the start of every docker build command, even with -q for quiet:

2025/02/20 13:17:35 in: []string{}
2025/02/20 13:17:35 Parsed entitlements: []

Expected behaviour

Not have left over debug outputs

Actual behaviour

Unexepcted debug outputs

Buildx version

github.com/docker/buildx v0.21.0 34ed52e

Docker info

Client: Docker Engine - Community
 Version:    28.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.33.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 8
  Running: 5
  Paused: 0
  Stopped: 3
 Images: 72
 Server Version: 28.0.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc version: v1.2.4-0-g6c52b3f
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-41-generic
 Operating System: Ubuntu 24.04.2 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 24
 Total Memory: 61.65GiB
 Name: ubuntu-tmgarn
 ID: 591c8e59-4009-459b-b483-2cdaedfbb82d
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Builders list

NAME/NODE     DRIVER/ENDPOINT   STATUS    BUILDKIT   PLATFORMS
default*      docker                                 
 \_ default    \_ default       running   v0.20.0    linux/amd64 (+3), linux/386

Configuration

FROM alpine:latest

Run docker buildx build -q .

Build logs

With -q you get the following two lines:

2025/02/20 13:36:55 in: []string{}
2025/02/20 13:36:55 Parsed entitlements: []

Without -q you get the above plus:

[+] Building 2.5s (5/5) FINISHED                                                                                                                                                 docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                       0.0s
 => => transferring dockerfile: 56B                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                                                                           1.7s
 => [internal] load .dockerignore                                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                            0.0s
 => [1/1] FROM docker.io/library/alpine:latest@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c                                                                     0.6s
 => => resolve docker.io/library/alpine:latest@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c                                                                     0.0s
 => => sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c 9.22kB / 9.22kB                                                                                             0.0s
 => => sha256:1c4eef651f65e2f7daee7ee785882ac164b02b78fb74503052a26dc061c90474 1.02kB / 1.02kB                                                                                             0.0s
 => => sha256:aded1e1a5b3705116fa0a92ba074a5e0b0031647d9c315983ccba2ee5428ec8b 581B / 581B                                                                                                 0.0s
 => => sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870 3.64MB / 3.64MB                                                                                             0.5s
 => => extracting sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870                                                                                                  0.0s
 => exporting to image                                                                                                                                                                     0.0s
 => => exporting layers                                                                                                                                                                    0.0s
 => => writing image sha256:aded1e1a5b3705116fa0a92ba074a5e0b0031647d9c315983ccba2ee5428ec8b                                                                                               0.0s

Additional info

Docker installed with Ubuntu packages from https://download.docker.com/linux/ubuntu

  • docker-ce 5:28.0.0-1~ubuntu.24.04~noble
  • docker-buildx-plugin 0.21.0-1~ubuntu.24.04~noble
@sudo-bmitch
Copy link

I'm seeing the same output:

$ docker version
Client: Docker Engine - Community
 Version:           28.0.0
 API version:       1.48
 Go version:        go1.23.6
 Git commit:        f9ced58
 Built:             Wed Feb 19 22:10:43 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          28.0.0
  API version:      1.48 (minimum version 1.24)
  Go version:       go1.23.6
  Git commit:       af898ab
  Built:            Wed Feb 19 22:10:43 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.25
  GitCommit:        bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc:
  Version:          1.2.4
  GitCommit:        v1.2.4-0-g6c52b3f
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

$ docker buildx version
github.com/docker/buildx v0.21.0 34ed52e4ae66478e29c2ca88ac1a3a6ef5a56759

$ docker builder ls
NAME/NODE        DRIVER/ENDPOINT                   STATUS    BUILDKIT   PLATFORMS
container*       docker-container
 \_ container0    \_ unix:///var/run/docker.sock   running   v0.20.0    linux/amd64 (+3), linux/arm64, linux/arm (+2), linux/ppc64le, (7 more)
default          docker
 \_ default       \_ default                       running   v0.20.0    linux/amd64 (+3), linux/arm64, linux/arm (+2), linux/ppc64le, (7 more)

$ docker build -t test-alpine -f df.alpine .
2025/02/20 15:30:34 in: []string{}
2025/02/20 15:30:34 Parsed entitlements: []
[+] Building 0.3s (5/5) FINISHED                                                          docker:default
 => [internal] load build definition from df.alpine                                                 0.1s
 => => transferring dockerfile: 48B                                                                 0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                    0.0s
 => [internal] load .dockerignore                                                                   0.1s
 => => transferring context: 49B                                                                    0.0s
 => CACHED [1/1] FROM docker.io/library/alpine:latest                                               0.0s
 => exporting to image                                                                              0.1s
 => => exporting layers                                                                             0.0s
 => => writing image sha256:e75ff1d806b99c41ff0f797f6800a85546d5ebf447d69796ec1db166809a41a2        0.0s
 => => naming to docker.io/library/test-alpine                                                      0.0s

@ardasevinc
Copy link

it's a harmless accidental debug right?

@jreichman
Copy link

it's a harmless accidental debug right?

I rely on the quiet output to capture the SHA to reference later, rather than tag the image. This output does break those processes. There might be a better way of doing it, but this is an example of it breaking something.

Not exactly what I do, but something like this used to work, but doesn't now

TAG=$(docker build -f Dockerfile -q .)

docker run --rm -it "$TAG"

It's nice when you don't want to (or can't) make assumptions about what tags you can use for temporary builds and don't want to collide or overwrite other tags.

jreichman added a commit to archmachina/dfbar that referenced this issue Feb 24, 2025
Docker build output includes debug lines before SHA output. Changing to
use the last line of the quite output as a workaround. GitHub issue: docker/buildx#3015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants