extension SDK : cannot chain commands in exec() (#15627)

* extension SDK : cannot chain commands in exec()

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

* Apply suggestions from code review

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
This commit is contained in:
Guillaume Tardif 2022-09-13 13:07:12 +01:00 committed by GitHub
parent 543a2c26fd
commit a0b7f4f8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -170,3 +170,7 @@ window.ddClient.spawnHostCmd(
}
);
```
> You cannot use this to chain commands in a single `exec()` invocation (like `cmd1 $(cmd2)` or using pipe between commands).
>
> You need to invoke `exec()` for each command and parse results to pass parameters to the next command if needed.

View File

@ -1,5 +1,5 @@
---
title: Docker
title: Docker
description: Docker extension API
keywords: Docker, extensions, sdk, API
---
@ -128,6 +128,10 @@ await ddClient.docker.cli.exec(
);
```
> You cannot use this to chain commands in a single `exec()` invocation (like `docker kill $(docker ps -q)` or using pipe between commands).
>
> You need to invoke `exec()` for each command and parse results to pass parameters to the next command if needed.
See the [Exec API reference](reference/interfaces/Exec.md) for details about these methods.
> Deprecated execution of Docker commands