Docker Node SDK, a TypeScript SDK for Docker API

logo

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

Image

Network

Volume

Exec

Plugin

System

Distribution

Session

Swarm