doca-setup

Verifies, configures, and troubleshoots the NVIDIA DOCA install and runtime environment on BlueField hosts.

3.2k|370|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/NVIDIA/skills --skill doca-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doca-setup
Source: https://github.com/NVIDIA/skills/tree/main/skills/doca-setup
Command: npx skills add https://github.com/NVIDIA/skills --skill doca-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up a working NVIDIA DOCA environment on a host or BlueField DPU involves many fragile steps — install profiles, pkg-config paths, hugepages, devlink, representors, and kernel modules — and failures surface as confusing build or runtime errors. This Skill guides an agent through verifying install health, preparing the build and runtime environment, diagnosing env-class failures, and routing deployment-shaped questions to the correct container or bare-metal path.

Core Features & Use Cases

  • Front-door deployment routing: Detects the system shape (host x86, BlueField Arm bare-metal, DPU-only, or fresh laptop) and routes to container deployment, bare-metal deployment, or the no-install fallback.
  • Environment preparation and verification: Walks through PKG_CONFIG_PATH, LD_LIBRARY_PATH, build toolchain checks, hugepage reservation, and device/representor visibility with a health-check command set.
  • Env-class error diagnosis: Provides a layered debug workflow and error taxonomy for symptoms like missing doca-flow.pc files, unmounted hugepages, or absent representors.
  • No-install fallback: Directs users without DOCA (macOS, Windows, CI runners) to the public NGC DOCA container as a Stage-1 build and learn environment.
  • Use Case: A developer says "I just got a BlueField, what now?" The agent auto-detects the system shape, asks minimal closed questions, prepares the environment, and routes to the right deployment skill.

Quick Start

Ask your agent: "I just got a BlueField and my DOCA code is built — walk me through verifying the install and running it."

Frequently Asked Questions about doca-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify my NVIDIA DOCA install is healthy?

Run the install-health snapshot: check /opt/mellanox/doca exists, confirm pkg-config --modversion doca-common returns a version, list *.pc files under the infrastructure pkgconfig directory, and run doca_caps. The skill walks these checks in install, capability, then runtime order.

How do I learn DOCA without a BlueField or Linux host?

Use the public NGC DOCA container at nvcr.io/nvidia/doca/doca, which runs on any OS with Docker. It ships the full doca-all profile with samples and headers for building and learning, but real hardware runtime requires graduating to a host with a NIC or DPU.

Why does pkg-config fail to find doca-flow?

The most common causes are a missing PKG_CONFIG_PATH entry for /opt/mellanox/doca/infrastructure/lib/pkgconfig or a wrong install profile that never shipped doca-flow.pc. Check the pkgconfig directory first, then reinstall with the doca-all profile if the file is absent.

Should I deploy a DOCA workload as a container or bare-metal binary?

Containers via kubelet-standalone with a YAML pod-spec are the canonical path for packaged NVIDIA DOCA services on BlueField. Bare-metal launch via CLI, tmux, or systemd is the canonical path for a DOCA-linked application you wrote yourself. The skill's recognize workflow routes based on your system shape and workload kind.

What runtime preconditions does a DOCA Flow program need?

Hugepages must be mounted and reserved, the BlueField device must appear in devlink dev show, representors must be visible under /sys/class/net, mlx5 kernel modules must be loaded, and the device mode must match what the program expects. All five checks must pass before debugging the program itself.

When should I not use the doca-setup skill?

Do not use it for library API questions like Flow pipe construction or RDMA queue setup, for deriving a first application from a sample, or for DOCA_ERROR_* program-side debugging. Those belong to the doca-flow, doca-programming-guide, or doca-debug skills respectively.