зеркало из https://github.com/docker/node-sdk.git
de9ce936ca
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> |
||
---|---|---|
.. | ||
README.md | ||
context-ls.ts | ||
exec.ts | ||
ps.ts | ||
start-stop.ts | ||
volume.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>