Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 876 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 876 Bytes

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>

List of examples