Modules@robinpath/docker

@robinpath/docker

0.1.0Public

Docker container and image management using the system docker binary

@robinpath/docker

Docker container and image management using the system docker binary

Category Functions Auth License

Why use this module?

The docker module lets you:

  • List Docker containers
  • List Docker images
  • Run a new container from an image
  • Stop a running container
  • Start a stopped container

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/docker

Quick Start

No credentials needed — start using it right away:

docker.images

Available Functions

FunctionDescription
docker.psList Docker containers
docker.imagesList Docker images
docker.runRun a new container from an image
docker.stopStop a running container
docker.startStart a stopped container
docker.rmRemove a container
docker.rmiRemove a Docker image
docker.logsFetch logs from a container
docker.execExecute a command inside a running container
docker.buildBuild a Docker image from a Dockerfile
docker.pullPull a Docker image from a registry
docker.pushPush a Docker image to a registry
docker.inspectReturn low-level information on a container or image
docker.statsDisplay container resource usage statistics
docker.networkManage Docker networks
docker.volumeManage Docker volumes

Examples

List Docker images

docker.images

Run a new container from an image

docker.run

Stop a running container

docker.stop

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/docker";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  docker.images
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/docker
Version0.1.0
LicenseMIT
Unpacked Size5.1 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

devops