Skip to content

Instantly share code, notes, and snippets.

@sozercan
Created March 25, 2024 18:43
Show Gist options
  • Save sozercan/28dfa71da896989cd573d1e0a7511246 to your computer and use it in GitHub Desktop.
Save sozercan/28dfa71da896989cd573d1e0a7511246 to your computer and use it in GitHub Desktop.
~ ❯ docker build --allow security.insecure -t nvdftest -f Dockerfile . --progress plain
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 DONE 0.0s
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.04kB done
#1 DONE 0.0s
#2 resolve image config for docker.io/docker/dockerfile:labs
#2 DONE 0.3s
#3 docker-image://docker.io/docker/dockerfile:labs@sha256:bd24901c537a316a4802d920bf86605f4db8ef676ef7258a3b381e12d90c62c8
#3 resolve docker.io/docker/dockerfile:labs@sha256:bd24901c537a316a4802d920bf86605f4db8ef676ef7258a3b381e12d90c62c8 0.0s done
#3 CACHED
#4 [internal] load metadata for docker.io/library/ubuntu:22.04
#4 DONE 0.3s
#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s
#6 [1/3] FROM docker.io/library/ubuntu:22.04@sha256:77906da86b60585ce12215807090eb327e7386c8fafb5402369e421f44eff17e
#6 resolve docker.io/library/ubuntu:22.04@sha256:77906da86b60585ce12215807090eb327e7386c8fafb5402369e421f44eff17e 0.0s done
#6 sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 0B / 29.54MB 0.2s
#6 sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 9.44MB / 29.54MB 0.5s
#6 sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 19.92MB / 29.54MB 0.6s
#6 sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 26.50MB / 29.54MB 0.8s
#6 sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 29.54MB / 29.54MB 0.9s
#6 sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 29.54MB / 29.54MB 1.2s done
#6 extracting sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb
#6 extracting sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb 0.8s done
#6 DONE 2.1s
#7 [2/3] RUN --security=insecure apt-get update && apt-get install -y wget kmod && cd /root && VERSION=$(cat /proc/driver/nvidia/version | sed -n 's/.*NVIDIA UNIX x86_64 Kernel Module \([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p') && wget https://us.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/NVIDIA-Linux-x86_64-$VERSION.run && chmod +x NVIDIA-Linux-x86_64-$VERSION.run && ./NVIDIA-Linux-x86_64-$VERSION.run -x && rm NVIDIA-Linux-x86_64-$VERSION.run && /root/NVIDIA-Linux-x86_64-$VERSION/nvidia-installer -a -s --skip-depmod --no-dkms --no-nvidia-modprobe --no-questions --no-systemd --no-x-check --no-kernel-modules --no-kernel-module-source && rm -rf /root/NVIDIA-Linux-x86_64-$VERSION
#7 0.923 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#7 0.930 Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#7 1.623 Get:3 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1620 kB]
#7 1.759 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#7 1.952 Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
#7 2.176 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#7 2.386 Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1080 kB]
#7 2.450 Get:8 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.6 kB]
#7 2.452 Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2037 kB]
#7 2.766 Get:10 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#7 2.865 Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#7 2.949 Get:12 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#7 3.996 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1356 kB]
#7 4.018 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [50.4 kB]
#7 4.019 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1902 kB]
#7 4.146 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2085 kB]
#7 4.730 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.3 kB]
#7 5.072 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [80.9 kB]
#7 5.331 Fetched 30.6 MB in 5s (6011 kB/s)
#7 5.331 Reading package lists...
#7 6.105 Reading package lists...
#7 6.835 Building dependency tree...
#7 6.984 Reading state information...
#7 7.104 The following additional packages will be installed:
#7 7.105 ca-certificates libkmod2 libpsl5 openssl publicsuffix
#7 7.135 The following NEW packages will be installed:
#7 7.135 ca-certificates kmod libkmod2 libpsl5 openssl publicsuffix wget
#7 7.469 0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
#7 7.469 Need to get 2046 kB of archives.
#7 7.469 After this operation, 4344 kB of additional disk space will be used.
#7 7.469 Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.15 [1186 kB]
#7 8.084 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates all 20230311ubuntu0.22.04.1 [155 kB]
#7 8.091 Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libkmod2 amd64 29-1ubuntu1 [48.0 kB]
#7 8.093 Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 kmod amd64 29-1ubuntu1 [101 kB]
#7 8.098 Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpsl5 amd64 0.21.0-1.2build2 [58.4 kB]
#7 8.101 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 publicsuffix all 20211207.1025-1 [129 kB]
#7 8.107 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 wget amd64 1.21.2-2ubuntu1 [367 kB]
#7 8.250 debconf: delaying package configuration, since apt-utils is not installed
#7 8.275 Fetched 2046 kB in 1s (2079 kB/s)
#7 8.306 Selecting previously unselected package openssl.
(Reading database ... 4393 files and directories currently installed.)
#7 8.309 Preparing to unpack .../0-openssl_3.0.2-0ubuntu1.15_amd64.deb ...
#7 8.316 Unpacking openssl (3.0.2-0ubuntu1.15) ...
#7 8.398 Selecting previously unselected package ca-certificates.
#7 8.400 Preparing to unpack .../1-ca-certificates_20230311ubuntu0.22.04.1_all.deb ...
#7 8.411 Unpacking ca-certificates (20230311ubuntu0.22.04.1) ...
#7 8.506 Selecting previously unselected package libkmod2:amd64.
#7 8.508 Preparing to unpack .../2-libkmod2_29-1ubuntu1_amd64.deb ...
#7 8.519 Unpacking libkmod2:amd64 (29-1ubuntu1) ...
#7 8.573 Selecting previously unselected package kmod.
#7 8.575 Preparing to unpack .../3-kmod_29-1ubuntu1_amd64.deb ...
#7 8.581 Unpacking kmod (29-1ubuntu1) ...
#7 8.638 Selecting previously unselected package libpsl5:amd64.
#7 8.639 Preparing to unpack .../4-libpsl5_0.21.0-1.2build2_amd64.deb ...
#7 8.645 Unpacking libpsl5:amd64 (0.21.0-1.2build2) ...
#7 8.688 Selecting previously unselected package publicsuffix.
#7 8.690 Preparing to unpack .../5-publicsuffix_20211207.1025-1_all.deb ...
#7 8.696 Unpacking publicsuffix (20211207.1025-1) ...
#7 8.742 Selecting previously unselected package wget.
#7 8.744 Preparing to unpack .../6-wget_1.21.2-2ubuntu1_amd64.deb ...
#7 8.750 Unpacking wget (1.21.2-2ubuntu1) ...
#7 8.805 Setting up libpsl5:amd64 (0.21.0-1.2build2) ...
#7 8.832 Setting up wget (1.21.2-2ubuntu1) ...
#7 8.862 Setting up openssl (3.0.2-0ubuntu1.15) ...
#7 8.886 Setting up publicsuffix (20211207.1025-1) ...
#7 8.904 Setting up libkmod2:amd64 (29-1ubuntu1) ...
#7 8.920 Setting up kmod (29-1ubuntu1) ...
#7 8.999 Setting up ca-certificates (20230311ubuntu0.22.04.1) ...
#7 9.072 debconf: unable to initialize frontend: Dialog
#7 9.072 debconf: (TERM is not set, so the dialog frontend is not usable.)
#7 9.072 debconf: falling back to frontend: Readline
#7 9.072 debconf: unable to initialize frontend: Readline
#7 9.072 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
#7 9.072 debconf: falling back to frontend: Teletype
#7 9.455 Updating certificates in /etc/ssl/certs...
#7 10.02 137 added, 0 removed; done.
#7 10.06 Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
#7 10.09 Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
#7 10.10 Updating certificates in /etc/ssl/certs...
#7 10.53 0 added, 0 removed; done.
#7 10.53 Running hooks in /etc/ca-certificates/update.d...
#7 10.53 done.
#7 10.57 --2024-03-25 18:38:18-- https://us.download.nvidia.com/XFree86/Linux-x86_64/545.23.06/NVIDIA-Linux-x86_64-545.23.06.run
#7 10.57 Resolving us.download.nvidia.com (us.download.nvidia.com)... 192.229.211.70, 2606:2800:21f:3aa:dcf:37b:1ed6:1fb
#7 10.91 Connecting to us.download.nvidia.com (us.download.nvidia.com)|192.229.211.70|:443... connected.
#7 10.98 HTTP request sent, awaiting response... 200 OK
#7 11.03 Length: 324826559 (310M) [application/octet-stream]
#7 11.03 Saving to: 'NVIDIA-Linux-x86_64-545.23.06.run'
#7 13.57 2024-03-25 18:38:21 (122 MB/s) - 'NVIDIA-Linux-x86_64-545.23.06.run' saved [324826559/324826559]
#7 13.57
#7 13.59 Creating directory NVIDIA-Linux-x86_64-545.23.06
#7 13.59 Verifying archive integrity... OK
#7 15.18 Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 545.23.06.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
#7 18.00
#7 18.00 WARNING: You specified the '--no-kernel-modules' command line option, nvidia-installer will not install any kernel modules as part of this driver installation, and it will not remove existing NVIDIA kernel modules not part of an earlier NVIDIA driver installation. Please ensure that NVIDIA kernel modules matching this driver version are installed separately.
#7 18.00
#7 18.00
#7 18.00 WARNING: nvidia-installer was forced to guess the X library path '/usr/lib64' and X module path '/usr/lib64/xorg/modules'; these paths were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the `pkg-config` utility and the X.Org SDK/development package for your distribution and reinstall the driver.
#7 18.00
#7 18.00
#7 18.00 WARNING: This NVIDIA driver package includes Vulkan components, but no Vulkan ICD loader was detected on this system. The NVIDIA Vulkan ICD will not function without the loader. Most distributions package the Vulkan loader; try installing the "vulkan-loader", "vulkan-icd-loader", or "libvulkan1" package.
#7 18.00
#7 DONE 40.2s
#8 [3/3] RUN --security=insecure mknod --mode 666 /dev/nvidiactl c 195 255 && mknod --mode 666 /dev/nvidia-uvm c 235 0 && mknod --mode 666 /dev/nvidia-uvm-tools c 235 1 && mknod --mode 666 /dev/nvidia0 c 195 0 && nvidia-smi
#8 0.339 Mon Mar 25 18:38:48 2024
#8 0.339 +---------------------------------------------------------------------------------------+
#8 0.339 | NVIDIA-SMI 545.23.06 Driver Version: 545.23.06 CUDA Version: 12.3 |
#8 0.339 |-----------------------------------------+----------------------+----------------------+
#8 0.339 | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
#8 0.339 | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
#8 0.339 | | | MIG M. |
#8 0.339 |=========================================+======================+======================|
#8 0.354 | 0 Tesla T4 Off | 00000001:00:00.0 Off | Off |
#8 0.354 | N/A 35C P8 13W / 70W | 2MiB / 16384MiB | 0% Default |
#8 0.354 | | | N/A |
#8 0.354 +-----------------------------------------+----------------------+----------------------+
#8 0.354
#8 0.354 +---------------------------------------------------------------------------------------+
#8 0.354 | Processes: |
#8 0.354 | GPU GI CI PID Type Process name GPU Memory |
#8 0.354 | ID ID Usage |
#8 0.354 |=======================================================================================|
#8 0.355 | No running processes found |
#8 0.355 +---------------------------------------------------------------------------------------+
#8 DONE 0.6s
#9 exporting to image
#9 exporting layers
#9 exporting layers 42.7s done
#9 exporting manifest sha256:7f44499e49ae25e54b49ce57f137eb553d287a9795876a90d0e76bbecb4a5b49 0.0s done
#9 exporting config sha256:c38c242634d388562b766bffe011f7b29c734fa3c29608daaf985feb066c6cde 0.0s done
#9 exporting attestation manifest sha256:98a3258b2338b1349983b396e2459af4afdfb0d2d28613c3d70d8a9bd7f74ac7 0.0s done
#9 exporting manifest list sha256:990af67f7c3537a6ede13451182e1734f2adb983a949977c80f09a05929bfe57
#9 exporting manifest list sha256:990af67f7c3537a6ede13451182e1734f2adb983a949977c80f09a05929bfe57 0.0s done
#9 naming to docker.io/library/nvdftest:latest done
#9 unpacking to docker.io/library/nvdftest:latest
#9 unpacking to docker.io/library/nvdftest:latest 5.2s done
#9 DONE 48.0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment