mirror of
https://github.com/docker/node-sdk
synced 2026-04-05 19:45:10 +00:00
No description
- TypeScript 98.7%
- Mustache 0.4%
- JavaScript 0.3%
- Dockerfile 0.2%
- HCL 0.2%
- Other 0.1%
|
|
||
|---|---|---|
| .github | ||
| lib | ||
| templates | ||
| test | ||
| test-integration | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitignore | ||
| .node-version | ||
| .nvmrc | ||
| .oxlintrc.json | ||
| .prettierignore | ||
| .prettierrc.yml | ||
| bake_test_all.sh | ||
| docker-bake.hcl | ||
| Dockerfile | ||
| LICENSE | ||
| logo.png | ||
| main.ts | ||
| makefile | ||
| openapi-config.yaml | ||
| openapitools.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| RELEASE.md | ||
| swagger.yaml | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
Docker Node SDK, a TypeScript SDK for Docker API
Node-SDK is a TypeScript library to access Docker engine API (a.k.a "Moby").
Installation
npm install @docker/node-sdk
Usage
import { DockerClient } from '@docker/node-sdk';
const docker = await DockerClient.fromDockerConfig();
const containers = await docker.containerList({ all: true });
console.dir(containers);
License
Licensed under Apache License version 2.0 Copyright 2025, Docker Inc
tl;dr: You're free to use this code, make any changes you need, have fun with it. Contributions are welcome if you miss something.
Supported APIs:
Container
- ContainerList
- ContainerCreate
- ContainerInspect
- ContainerTop
- ContainerLogs
- ContainerChanges
- ContainerExport
- ContainerStats
- ContainerResize
- ContainerStart
- ContainerStop
- ContainerRestart
- ContainerKill
- ContainerUpdate
- ContainerRename
- ContainerPause
- ContainerUnpause
- ContainerAttach
- ContainerWait
- ContainerDelete
- ContainerArchiveInfo
- ContainerArchive
- PutContainerArchive
- ContainerPrune
Image
- ImageList
- ImageBuild
- BuildPrune
- ImageCreate
- ImageInspect
- ImageHistory
- ImagePush
- ImageTag
- ImageDelete
- ImageSearch
- ImagePrune
- ImageCommit
- ImageGet
- ImageGetAll
- ImageLoad
Network
- NetworkList
- NetworkInspect
- NetworkDelete
- NetworkCreate
- NetworkConnect
- NetworkDisconnect
- NetworkPrune
Volume
- VolumeList
- VolumeCreate
- VolumeInspect
- VolumeUpdate
- VolumeDelete
- VolumePrune
Exec
- ContainerExec
- ExecStart
- ExecResize
- ExecInspect
Plugin
- PluginList
- GetPluginPrivileges
- PluginPull
- PluginInspect
- PluginDelete
- PluginEnable
- PluginDisable
- PluginUpgrade
- PluginCreate
- PluginPush
- PluginSet
System
- SystemAuth
- SystemInfo
- SystemVersion
- SystemPing
- SystemEvents
- SystemDataUsage
Distribution
- DistributionInspect
Session
- Session
Swarm
- SwarmInspect
- SwarmInit
- SwarmJoin
- SwarmLeave
- SwarmUpdate
- SwarmUnlockkey
- SwarmUnlock
- NodeList
- NodeInspect
- NodeDelete
- NodeUpdate
- ServiceList
- ServiceCreate
- ServiceInspect
- ServiceDelete
- ServiceUpdate
- ServiceLogs
- TaskList
- TaskInspect
- TaskLogs
- SecretList
- SecretCreate
- SecretInspect
- SecretDelete
- SecretUpdate
- ConfigList
- ConfigCreate
- ConfigInspect
- ConfigDelete
- ConfigUpdate
