実現したいこと
■目的・背景
Docker上にOpenWebUI+Ollama+Stable DiffusionのローカルAI環境を構築しようとしています
OpenWebUI+Ollamaは稼働確認できています
追加でStable Diffusionの導入でつまづいています、これを実現したいです
発生している問題・分からないこと
1、Docker Desktopを起動
2,Docker Hubタブにてdrakmail/automatic1111をイメージPull
3,Docker Desktopの下部ターミナル画面で以下コマンド入力(GPUドライバ、コンテナ名称を指定)
4,docker run --gpus all --name sd-webui-a1111 drakmail/automatic1111
5,別記エラーメッセージ発生
6,2をsimonmcnair/reforgeをイメージPullしたが5同様エラー発生
7,Dockerイメージ取得をGit経由でも試したがコンテナビルド時に5同様エラー発生
エラーメッセージ
error
1RuntimeError: CUDA error: no kernel image is available for execution on the device 2CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. 3For debugging consider passing CUDA_LAUNCH_BLOCKING=1. 4Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
該当のソースコード
特になし
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
1,エラーメッセージをGoogle検索
2,yamlファイル編集やenvファイル編集や、\venv\Scriptsフォルダでコマンド実施等の対策が見つかる
https://www.reddit.com/r/StableDiffusion/comments/1j3ix0m/runtimeerror_cuda_error_no_kernel_image_is/?tl=ja
https://github.com/oobabooga/text-generation-webui/issues/2002
https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q10313490440
https://stackoverflow.com/questions/79665616/cuda-error-no-kernel-image-is-available-for-execution-on-the-device
3,私はDocker環境の知識が浅いため2の場所や実施手順がわかりません
補足
■使用環境
・ホストOS:Windows 11 Pro 64bit 25H2 ビルド:26200.7171
・Docker Desktop:Docker Desktop 4.53.0
・ホストOSにインストール済:Python 3.13.7、Git、Pip、Git Bash、
・NVidiaグラフィックドライバのバージョン
nvidia-smi →Driver Version: 577.00 CUDA Version: 12.9
・CUDAのバージョン
nvcc -V →
Cuda compilation tools, release 12.8, V12.8.61
Build cuda_12.8.r12.8/compiler.35404655_0
・pytorchのバージョン
python
import torch
print(torch.version) →2.7.1+cu128
ホストOS(Windows)上ではStabilityMatrix経由でStable Diffusion reForge他が稼働できています
回答1件
あなたの回答
tips
プレビュー