зеркало из https://github.com/docker/node-sdk.git
2f1b3a74d1
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com> |
||
---|---|---|
.. | ||
README.md | ||
context-ls.ts | ||
exec.ts | ||
ps.ts | ||
start-stop.ts |
README.md
Examples
This folder contains examples of how to use the Docker CLI JavaScript SDK.
Prerequisites
To run the examples you will need to have an ACI context as default and the Docker CLI API server running. You can do this by running:
$ docker context create aci-context aci
$ docker context use aci-context
$ docker serve --address unix:///tmp/backend.sock
To make sure that you have the example dependencies installed, use:
$ yarn
Running examples
You can then run any an example from the root of this repository as follows:
$ npm run example examples/<file>