Files
massive-cloud/docker-compose.gpu.compose-v2.yml

14 lines
520 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 供 Docker Compose V2(命令为「docker compose」,非「docker-compose」)使用。
# 使用 gpus: all,与 docker run --gpus all 一致,不要求 daemon 注册名为 nvidia 的 runtime。
#
# 启动示例:
# docker compose -f docker-compose.dev.yml -f docker-compose.gpu.compose-v2.yml up -d --no-build
#
# 若报错不认识 gpus:,说明仍是旧版 docker-compose,请改用 docker-compose.gpu.yml 并执行 nvidia-ctk(见该文件头注释)。
version: '3.8'
services:
app:
gpus: all