0.0.19 • Published 5 months ago

docker-client-ts v0.0.19

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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

9 months ago

0.0.18

9 months ago

0.0.16

9 months ago

0.0.13

10 months ago

0.0.14

10 months ago

0.0.15

9 months ago

0.0.12

10 months ago

0.0.10

10 months ago

0.0.11

10 months ago

0.0.9

10 months ago

0.0.8

10 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

11 months ago

0.0.1

11 months ago