Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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