All Projects → Oursin → denocker

Oursin / denocker

Licence: ISC license
A Docker client library for Deno

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to denocker

garn-validator
Create validations with ease
Stars: ✭ 42 (+82.61%)
Mutual labels:  deno
sinco
Browser Automation and Testing Tool for Deno, written in full TypeScript
Stars: ✭ 54 (+134.78%)
Mutual labels:  deno
sqlite3
The fastest and correct module for SQLite3 in Deno.
Stars: ✭ 143 (+521.74%)
Mutual labels:  deno
deno-bin
Use Deno via npm
Stars: ✭ 52 (+126.09%)
Mutual labels:  deno
deno serverless aliyun
为阿里云 serverless 平台添加 Deno Runtime
Stars: ✭ 60 (+160.87%)
Mutual labels:  deno
AloeDB
Light, Embeddable, NoSQL database for Deno 🦕
Stars: ✭ 111 (+382.61%)
Mutual labels:  deno
deno cheerio
How to use cheerio in Deno
Stars: ✭ 23 (+0%)
Mutual labels:  deno
node2deno
Deno for Node.js developers
Stars: ✭ 19 (-17.39%)
Mutual labels:  deno
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+634.78%)
Mutual labels:  deno
deno-mongo-api
Example for building REST APIS with deno and MongoDB
Stars: ✭ 17 (-26.09%)
Mutual labels:  deno
compress
compress and uncompress for Deno
Stars: ✭ 29 (+26.09%)
Mutual labels:  deno
Deno-news-cli
A deno based CLI app to show quick news at your terminal
Stars: ✭ 18 (-21.74%)
Mutual labels:  deno
kyuko
Fast and easy http framework for Deno Deploy 🦕
Stars: ✭ 18 (-21.74%)
Mutual labels:  deno
shell
A very lightweight framework for building shell/CLI applications. Works in Node.js, Deno, and the browser.
Stars: ✭ 63 (+173.91%)
Mutual labels:  deno
reno
A thin, testable routing library designed to sit on top of Deno's standard HTTP module
Stars: ✭ 127 (+452.17%)
Mutual labels:  deno
kafkaSaur
Apache Kafka client for Deno
Stars: ✭ 42 (+82.61%)
Mutual labels:  deno
deno math
Deno module for high-precision calculations and scientific computing
Stars: ✭ 21 (-8.7%)
Mutual labels:  deno
crypto
🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Stars: ✭ 40 (+73.91%)
Mutual labels:  deno
cotton
SQL Database Toolkit for Deno
Stars: ✭ 129 (+460.87%)
Mutual labels:  deno
justjavac
justjavac's modules
Stars: ✭ 15 (-34.78%)
Mutual labels:  deno

Denocker

A fully typed, async-first docker client library for Deno.

Installation

import Docker from "https://deno.land/x/denocker/index.ts"

Usage

Simple example

import Docker from "https://deno.land/x/denocker/index.ts"

const docker = new Docker("/var/run/docker.sock");
const container = await docker.containers.create("my_container", {
  Image: "alpine",
  Cmd: ["ls"],
  StopTimeout: 10,
});
await docker.containers.start(container.Id);

Manipulating containers

// Fetch the list of currently running containers
const containers = await docker.containers.list({all: true});

// Create a container
const container = await docker.containers.create("my_container", {
  Image: "alpine",
  Cmd: ["echo", "hello"],
});

// Start the container
await docker.containers.start(container.Id);

// Stop a container
await docker.containers.stop(container.Id);

// Kill a container
await docker.containers.kill(container.Id, "SIGKILL");

// Restart a container
await docker.containers.restart(container.Id);

// Wait until the container has finished running
await docker.container.wait(container.Id);

// Delete a container
await docker.containers.rm(container.Id);

API reference

Containers

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].