0.0.19 • Published 4 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
4 months ago
0.0.17
7 months ago
0.0.18
7 months ago
0.0.16
8 months ago
0.0.13
8 months ago
0.0.14
8 months ago
0.0.15
8 months ago
0.0.12
8 months ago
0.0.10
8 months ago
0.0.11
8 months ago
0.0.9
8 months ago
0.0.8
9 months ago
0.0.7
9 months ago
0.0.6
9 months ago
0.0.5
9 months ago
0.0.4
9 months ago
0.0.3
9 months ago
0.0.2
9 months ago
0.0.1
9 months ago