Skip to content

Commit 329a348

Browse files
authored
Merge pull request #23776 from crazy-max/build-gpu-image
build: use official buildkit ubuntu image for cdi
2 parents 7d60fdc + 08ab053 commit 329a348

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

  • content/manuals/build/building

content/manuals/build/building/cdi.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -209,27 +209,26 @@ GPU request is automatically added to the container builder if the host has GPU
209209
drivers installed in the kernel. This is similar to using [`--gpus=all` with the `docker run`](/reference/cli/docker/container/run.md#gpus)
210210
command.
211211

212-
> [!NOTE]
213-
> We made a specially crafted BuildKit image because the current BuildKit
214-
> release image is based on Alpine that doesn’t support NVIDIA drivers. The
215-
> following image is based on Ubuntu and installs the NVIDIA client libraries
216-
> and generates the CDI specification for your GPU in the container builder if
217-
> a device is requested during a build. This image is temporarily hosted on
218-
> Docker Hub under `crazymax/buildkit:v0.23.2-ubuntu-nvidia`.
219-
220212
Now let's create a container builder named `gpubuilder` using Buildx:
221213

222214
```console
223-
$ docker buildx create --name gpubuilder --driver-opt "image=crazymax/buildkit:v0.23.2-ubuntu-nvidia" --bootstrap
215+
$ docker buildx create --name gpubuilder --driver-opt "image=moby/buildkit:buildx-stable-1-gpu" --bootstrap
224216
#1 [internal] booting buildkit
225-
#1 pulling image crazymax/buildkit:v0.23.2-ubuntu-nvidia
226-
#1 pulling image crazymax/buildkit:v0.23.2-ubuntu-nvidia 1.0s done
217+
#1 pulling image moby/buildkit:buildx-stable-1-gpu
218+
#1 pulling image moby/buildkit:buildx-stable-1-gpu 1.0s done
227219
#1 creating container buildx_buildkit_gpubuilder0
228220
#1 creating container buildx_buildkit_gpubuilder0 8.8s done
229221
#1 DONE 9.8s
230222
gpubuilder
231223
```
232224

225+
> [!NOTE]
226+
> We made a specially crafted BuildKit image because the current BuildKit
227+
> release image is based on Alpine that doesn't support NVIDIA drivers. The
228+
> following image is based on Ubuntu and installs the NVIDIA client libraries
229+
> and generates the CDI specification for your GPU in the container builder if
230+
> a device is requested during a build.
231+
233232
Let's inspect this builder:
234233

235234
```console
@@ -241,10 +240,10 @@ Last Activity: 2025-07-10 08:18:09 +0000 UTC
241240
Nodes:
242241
Name: gpubuilder0
243242
Endpoint: unix:///var/run/docker.sock
244-
Driver Options: image="crazymax/buildkit:v0.23.2-ubuntu-nvidia"
243+
Driver Options: image="moby/buildkit:buildx-stable-1-gpu"
245244
Status: running
246245
BuildKit daemon flags: --allow-insecure-entitlement=network.host
247-
BuildKit version: v0.23.2
246+
BuildKit version: v0.26.2
248247
Platforms: linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
249248
Labels:
250249
org.mobyproject.buildkit.worker.executor: oci

0 commit comments

Comments
 (0)