tao-run-on-docker
БесплатноБез исполняемых скриптовНе проверенThe Docker execution platform for TAO jobs — a local daemon or a remote GPU box via DOCKER_HOST=ssh://user@host. Implements the four-verb consumer contract…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
Docker for NVIDIA GPU Workloads
Standalone install? If this session was not initialized by the TAO skill bank plugin, run the
tao-setupskill first (host preflight, credentials, cross-skill discovery).
The Docker execution platform: a consumer that runs a model/data skill's
spec-bundle by implementing four verbs (submit/status/logs/cancel) over
the docker CLI, on a local daemon or a remote GPU box via
DOCKER_HOST=ssh://. The verbs (§ Execution) sit on top of the docker
conventions in the rest of this file — GPU flags, mounts, NGC auth, inspection,
error modes — which are the how the model/data skill defers to. Single-node
only; for multi-node use SLURM or Kubernetes.
Sources: official Docker CLI reference (https://docs.docker.com/reference/cli/docker/) and NVIDIA Container Toolkit docs.
Prerequisites
- Host GPU runtime — by default, NVIDIA driver
>=580, CUDA Toolkit>=13.0, and NVIDIA Container Toolkit>=1.19.0. If the selected model'sreferences/skill_info.yamldeclaresruntime_requirements.gpu_host, pass those values totao-setup-nvidia-gpu-hostinstead. Model requirements override the defaults for that workflow. - Docker —
docker --versionmust return ≥ 20.10. Install: https://docs.docker.com/engine/install/. - NGC API key for
nvcr.io/*pulls. Get from https://ngc.nvidia.com/.
set -a; source /path/to/.env; set +a # omit if already exported
SB="${TAO_SKILL_BANK_PATH:-${TAO_SKILL_BANK_ROOT:-$PWD}}"
SETUP_SCRIPT="${SB}/skills/tao-setup-nvidia-gpu-host/scripts/setup-nvidia-gpu-host.sh"
bash "$SETUP_SCRIPT" --backend docker --check-only || {
echo "MISSING: TAO GPU host runtime is not ready."
echo "After user approval, run (append --yes for non-interactive agent runs):"
echo " bash \"$SETUP_SCRIPT\" --backend docker --install"
exit 1
}
docker --version
docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
[ -n "$NGC_KEY" ] || echo "NGC_KEY unset — cannot pull nvcr.io images"
If the selected model declares runtime_requirements.gpu_host, append the
corresponding --min-driver-version, --min-cuda-version, and
--min-container-toolkit-version values to both the check and any approved
install command. Do not apply one model's override to unrelated workflows.
NGC authentication
set -a; source /path/to/.env; set +a # omit if already exported
echo "$NGC_KEY" | docker login nvcr.io -u '$oauthtoken' --password-stdin
Persists in ~/.docker/config.json across reboots. Re-run on unauthorized errors.
Execution — the four verbs
Run a spec-bundle by implementing exactly these four verbs, mutating only the
job-record. Status values are the fixed vocabulary from tao-artifacts
(PENDING RUNNING COMPLETE ERROR CANCELED UNKNOWN); native docker states map
below, with the raw state carried in the transition message. $BANK =
${TAO_SKILL_BANK_PATH}.
submit
- Stage inputs via
tao-data-io: it picks the storage tier and returns the mount args + compute-frame paths. Docker uses tier A (bind-mount a host dir,-v /host/data:/data) as the norm, or tier C (pass S3 creds, the container fetches). Author the spec file at<stage>/spec.yamlwith those compute-frame paths. - Lint the assembled command —
redact_secrets.py lintmust pass (no inline secrets; pass creds as-e VARwith no value). - Open the record — this mints the id and binds
results_dirBEFORE launch:JOB_ID=$("$BANK/scripts/tao_job_record.py" open \ --platform docker --image "$IMAGE" \ --network-arch "$ARCH" --action "$ACTION" \ --storage-tier "$TIER" --results-root "$RESULTS_ROOT") - Launch detached, naming the container after the id so the other verbs find
it (keep
--rmOFF so an exited container stays inspectable):set -a; source /path/to/.env; set +a # omit if already exported CID=$(docker run -d --name "$JOB_ID" --label "tao-job=$JOB_ID" \ --gpus "$GPUS" --shm-size=8g \ -v "$STAGE:/workspace" \ -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e HF_TOKEN -e NGC_KEY \ "$IMAGE" <bundle command, reading /workspace/spec.yaml>) - Record RUNNING:
"$BANK/scripts/tao_job_record.py" mark "$JOB_ID" --state RUNNING --backend-ref "$CID".
A submit that skipped step 3 has no id, so it cannot launch — that is the record-then-launch invariant.
status
read -r st code < <(docker inspect --format '{{.State.Status}} {{.State.ExitCode}}' "$JOB_ID" 2>/dev/null) || st=missing
| docker state | vocab |
|---|---|
created / restarting |
PENDING |
running / paused |
RUNNING |
exited, code 0 |
COMPLETE |
exited, code ≠ 0 |
ERROR |
dead / missing |
UNKNOWN (confirm via docker ps -a) |
On a terminal state, mark it — and for tier C, tao-data-io uploads
results before you docker rm (the container is the only copy).
logs
docke
Установить tao-run-on-docker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashВложенные файлы
FAQ
Что делает скилл tao-run-on-docker?
The Docker execution platform for TAO jobs — a local daemon or a remote GPU box via DOCKER_HOST=ssh://user@host. Implements the four-verb consumer contract (submit/status/logs/cancel) over the docker CLI, wired to the job-record, tao-data-io staging, and the redact lint, on top of the underlying docker conventions (--gpus, mounts, NGC auth, inspection, data-root relocation, error modes). Use to run any single-node TAO container action on Docker without the SDK. Trigger keywords — docker, docker run, run on docker, DOCKER_HOST, remote docker, nvcr.io, --gpus, single-node GPU job.
Как установить скилл tao-run-on-docker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tao-run-on-docker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic