зеркало из https://github.com/docker/node-sdk.git
Add context create/use before running examples
Fixes #1 Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Родитель
0309351113
Коммит
5ec0486dbf
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче