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

docker-ssh

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-ssh

Access docker daemon through SSH

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

docker-ssh

A tool to connect to the docker daemon through ssh.

Command line

Installation

npm install -g docker-ssh

Usage

docker-ssh --ssh-host <host> <docker_command>...

Example

docker-ssh --ssh-host user@example.com ps -aq

Javascript

The javascript version of this is a thin wrapper around dockerode

Installation

npm install docker-ssh

Usage

docker.ssh returns an instance of dockerode. This module only handles the setup/teardown of the ssh tunnel

const docker = require('docker-ssh')
async function main() {
  const {client, cleanup} = await docker.ssh('user@example.com')
  let containers = await client.listContainers()
  // code
}
main()

Keywords

FAQs

Package last updated on 09 Sep 2018

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