Skip to content

Commit

Permalink
Fix: [docker-compose.example.yaml] Docker の更新後、KonomiTV から NVIDIA GPU…
Browse files Browse the repository at this point in the history
… にアクセスできなくなる問題を修正

最近のアップデートで count フィールドを指定しないと NVIDIA GPU にアクセスできなくなってしまったらしい
ref: https://qiita.com/ntrlmt/items/cb73e2b269635b28e5c0
  • Loading branch information
tsukumijima committed Dec 7, 2024
1 parent a5afd3e commit 35a5abb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ services:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [compute, utility, video]

# ==================== ↑↑↑↑↑ ここまでユーザー設定 ↑↑↑↑↑ ====================
2 changes: 2 additions & 0 deletions installer/Installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ def Installer(version: str) -> None:
' # reservations:\n'
' # devices:\n'
' # - driver: nvidia\n'
' # count: all\n'
' # capabilities: [compute, utility, video]'
)
# 置換後の config.yaml の記述
Expand All @@ -667,6 +668,7 @@ def Installer(version: str) -> None:
' reservations:\n'
' devices:\n'
' - driver: nvidia\n'
' count: all\n'
' capabilities: [compute, utility, video]'
)
text = text.replace(old_text, new_text)
Expand Down

0 comments on commit 35a5abb

Please sign in to comment.