MCPcopy
hub / github.com/Dokploy/dokploy / addGpuLabel

Function addGpuLabel

packages/server/src/utils/gpu-setup.ts:324–331  ·  view source on GitHub ↗
(nodeId: string, serverId?: string)

Source from the content-addressed store, hash-verified

322};
323
324const addGpuLabel = async (nodeId: string, serverId?: string) => {
325 const labelCommand = `docker node update --label-add gpu=true ${nodeId}`;
326 if (serverId) {
327 await execAsyncRemote(serverId, labelCommand);
328 } else {
329 await execAsync(labelCommand);
330 }
331};
332
333const verifySetup = async (nodeId: string, serverId?: string) => {
334 const finalStatus = await checkGPUStatus(serverId);

Callers 1

setupGPUSupportFunction · 0.85

Calls 2

execAsyncRemoteFunction · 0.90
execAsyncFunction · 0.90

Tested by

no test coverage detected