1.0.4 • Published 5 years ago

@tracker1/docker-cli v1.0.4

Weekly downloads
26
License
MIT
Repository
github
Last release
5 years ago

@tracker1/docker-cli

npm version Dependency Status Github Issues MIT License

Quick command interface for running docker commands with parsed results.

import dockerCommand from '@tracker1/docker-cli';

const result = await dockerCommand('ps', options);

dockerCommand

The command dockerCommand(command, options) has to input parameters.

  • command (string) - the command to run
  • options (object, optional) - Additional parameters to run
    • machineName (string) - the docker-machine configuration name to use.
    • cwd (string) - the working path to use
    • echo (bool) - when true, will echo the console output as the command runs

Related Projects

docker-cli-js - Original inspiration, started with some logic from this project. Reduced interface footprint to single method, separated logic out and using camelCase response naming.

License

MIT License

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago