2.0.0 • Published 6 years ago

docker-ssh v2.0.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
6 years ago

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()
2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago