0.0.19 • Published 5 months ago
docker-client-ts v0.0.19
docker-client-ts
installation
npm add docker-client-ts
usage
import { DockerClient } from "docker-client-ts";
const docker = await DockerClient({
baseURL: new URL("unix:/var/run/docker.sock"),
ssh: {
user: "username",
host: "127.0.0.1",
port: 22,
key: Buffer.from("ssh private key", "utf8"),
},
});
const { Id } = await client.Container.Create({
body: {
Image: "debian",
Cmd: ["bash"],
Tty: true,
},
});
await client.Container.Start({
path: { id: Id },
});
see tests for more example usage
0.0.19
5 months ago
0.0.17
8 months ago
0.0.18
8 months ago
0.0.16
8 months ago
0.0.13
9 months ago
0.0.14
9 months ago
0.0.15
9 months ago
0.0.12
9 months ago
0.0.10
9 months ago
0.0.11
9 months ago
0.0.9
9 months ago
0.0.8
9 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
10 months ago
0.0.1
10 months ago