Add context create/use before running examples

Fixes #1

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Djordje Lukic 2020-06-15 09:33:27 +02:00
Родитель 0309351113
Коммит 5ec0486dbf
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -7,10 +7,12 @@ This folder contains examples of how to use the Docker CLI JavaScript SDK.
* [Node.js 10 or later](https://nodejs.org/en/download/)
* [yarn](https://yarnpkg.com/getting-started/install)
To run the examples you will need to have the Docker CLI API server running. You
can do this by running:
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:
```console
$ docker context create aci-context aci
$ docker context use aci-context
$ docker serve --address unix:///tmp/backend.sock
```