🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/docker

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/docker

Docker Engine API client — containers, images, networks, volumes, and exec. Talks to a local Unix socket by default (`unix:///var/run/docker.sock`) or a TCP endpoint via the credential vault.

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@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

robinpath add @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.

License

MIT

Keywords

docker

FAQs

Package last updated on 06 May 2026

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