Skip to content

Make update-application-profile hook to ignore read-only fs error - #2028

Merged
henry118 merged 1 commit into
NVIDIA:mainfrom
henry118:fix2026
Aug 27, 2026
Merged

Make update-application-profile hook to ignore read-only fs error#2028
henry118 merged 1 commit into
NVIDIA:mainfrom
henry118:fix2026

Conversation

@henry118

Copy link
Copy Markdown
Member

Closes #2026

Before

$ docker run --rm -it --runtime=nvidia --gpus=all -v /tmp/etc-nvidia-ro:/etc/nvidia:ro ubuntu nvidia-smi
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running createContainer hook #6: exit status 1, stdout: , stderr: time="2026-08-26T21:50:49Z" level=error msg="failed to create application profiles directory: mkdirat etc/nvidia/nvidia-application-profiles-rc.d: read-only file system"

After

$ docker run --rm -it --runtime=nvidia --gpus=all -v /tmp/etc-nvidia-ro:/etc/nvidia:ro ubuntu nvidia-smi
Wed Aug 26 22:31:45 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.173.02             Driver Version: 580.173.02     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  Tesla T4                       Off |   00000000:65:00.0 Off |                    0 |
| N/A   35C    P8              9W /   70W |       5MiB /  15360MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

Signed-off-by: Henry Wang <henrwang@nvidia.com>
@henry118
henry118 requested a review from cdesiniotis August 27, 2026 22:44
@henry118 henry118 self-assigned this Aug 27, 2026
@cdesiniotis

Copy link
Copy Markdown
Contributor

/cherry-pick release-1.20

@henry118
henry118 merged commit 1d87654 into NVIDIA:main Aug 27, 2026
21 checks passed
@henry118
henry118 deleted the fix2026 branch August 27, 2026 23:03
@github-actions

Copy link
Copy Markdown

🤖 Backport PR created for release-1.20: #2030

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.

[Bug]: update-application-profile hook fails container create when /etc/nvidia is read-only (v1.20.0)

2 participants