1.0.1 • Published 10 months ago
@monolayer/dsdk v1.0.1
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