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

inspect: display buildkit daemon configuration file #2684

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Sep 11, 2024

follow-up #2683 (comment)

Displays buildkit daemon configuration file content used when creating a builder in inspect output:

# ~/.docker/buildx/buildkitd.default.toml

# debug enables additional debug logging
debug = true
# trace enables additional trace logging (very verbose, with potential performance impacts)
trace = true
# insecure-entitlements allows insecure entitlements, disabled by default.
insecure-entitlements = [ "network.host", "security.insecure" ]

[log]
  # log formatter: json or text
  format = "text"
$ docker buildx create --name builder --driver-opt "image=moby/buildkit:v0.16.0"
builder
$ docker buildx inspect builder --bootstrap
Name:          builder
Driver:        docker-container
Last Activity: 2024-09-11 08:31:27 +0000 UTC

Nodes:
Name:                  builder0
Endpoint:              unix:///var/run/docker.sock
Driver Options:        image="moby/buildkit:v0.16.0"
Status:                running
BuildKit daemon flags: --allow-insecure-entitlement=network.host
BuildKit version:      v0.16.0
Platforms:             linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
Features:
 Automatically load images to the Docker Engine image store: false
 Cache export:                                               true
 Docker exporter:                                            true
 Multi-platform build:                                       true
 OCI exporter:                                               true
Labels:
 org.mobyproject.buildkit.worker.executor:         oci
 org.mobyproject.buildkit.worker.hostname:         e5772cf17e94
 org.mobyproject.buildkit.worker.network:          host
 org.mobyproject.buildkit.worker.oci.process-mode: sandbox
 org.mobyproject.buildkit.worker.selinux.enabled:  false
 org.mobyproject.buildkit.worker.snapshotter:      overlayfs
GC Policy rule#0:
 All:           false
 Filters:       type==source.local,type==exec.cachemount,type==source.git.checkout
 Keep Duration: 48h0m0s
 Keep Bytes:    488.3MiB
GC Policy rule#1:
 All:           false
 Keep Duration: 1440h0m0s
 Keep Bytes:    94.06GiB
GC Policy rule#2:
 All:        false
 Keep Bytes: 94.06GiB
GC Policy rule#3:
 All:        true
 Keep Bytes: 94.06GiB
File#buildkitd.toml:
 > debug = true
 > insecure-entitlements = ["network.host", "security.insecure"]
 > trace = true
 >
 > [log]
 >   format = "text"
 >

commands/inspect.go Outdated Show resolved Hide resolved
@crazy-max crazy-max force-pushed the inspect-buildkitd-conf branch 4 times, most recently from 74e4eb8 to a3aee3b Compare September 11, 2024 11:51
@crazy-max crazy-max marked this pull request as ready for review September 11, 2024 11:56
@crazy-max crazy-max added this to the v0.18.0 milestone Sep 11, 2024
hack/test-driver Outdated Show resolved Hide resolved
@tonistiigi tonistiigi merged commit 604b723 into docker:master Sep 12, 2024
106 checks passed
@crazy-max crazy-max deleted the inspect-buildkitd-conf branch September 12, 2024 07:25
@crazy-max
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants