mirror of https://github.com/docker/docs.git
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:
parent
543a2c26fd
commit
a0b7f4f8b2
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: Docker
|
title: Docker
|
||||||
description: Docker extension API
|
description: Docker extension API
|
||||||
keywords: Docker, extensions, sdk, 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.
|
See the [Exec API reference](reference/interfaces/Exec.md) for details about these methods.
|
||||||
|
|
||||||
> Deprecated execution of Docker commands
|
> Deprecated execution of Docker commands
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue