Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@monolayer/dsdk

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monolayer/dsdk

TypeScript SDK interact with the Docker Engine API

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-92.31%
Maintainers
0
Weekly downloads
 
Created
Source

DSDK

DSDK is a type-safe SDK you can use to access the Docker Engine API.

Quick start

Installation

npm install @monolayer/dsdk

Configuration

DSDK will access the Docker Engine API by connecting to the Docker daemon of your choice.

All you need to do is to configure DSDK to use an existing Docker context with setContext.

import { setContext } from "@monolayer/dsdk/config";

// Will use credentials from the default Docker context
await setContext("default");

:tada: That's it. You're ready to go!

::: info DSDK supports Unix sockets and SSH connections.

You have can interact with Docker Engine API endpoints except:

  • /_ping
  • /session :::

See selected examples to interact with the Docker Engine API.

Debug API calls

To debug API calls, set the environment variable DEBUG to trace.


Full documentation is available here: DSDK Documentation

FAQs

Package last updated on 06 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc