.vscode | ||
scripts | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmignore | ||
.snyk | ||
docker-compose.yml | ||
LICENSE | ||
npmextra.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tslint.json |
@mojoio/docker
unofficial docker engine api abstraction package written in TypeScript
Availabililty and Links
Status for master
Usage
Use TypeScript for best in class instellisense.
import { DockerHost } from '@mojoio/docker'; // require Dockersock class
const run = async () => {
const myDockerHost = new DockerHost(); // optional: you can pass a domain to the contructor, defaults to /var/run/docker.sock
const containers = await myDockerHost.getContainers(); // promise, resolve with an array of DockerContainers
};
For further information read the linked docs at the top of this readme.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy