From c6a826ec5b94057adee0df0fa257bda9315ccb67 Mon Sep 17 00:00:00 2001 From: Benjamin Grandfond Date: Thu, 4 Aug 2022 10:07:23 +0200 Subject: [PATCH] Specify that the first container is used for vm.cli.exec when multi container extension (#15302) --- .../dev/api/reference/interfaces/ExtensionVM.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/extensions-sdk/dev/api/reference/interfaces/ExtensionVM.md b/desktop/extensions-sdk/dev/api/reference/interfaces/ExtensionVM.md index 2611857379..4899119632 100644 --- a/desktop/extensions-sdk/dev/api/reference/interfaces/ExtensionVM.md +++ b/desktop/extensions-sdk/dev/api/reference/interfaces/ExtensionVM.md @@ -25,6 +25,11 @@ await ddClient.extension.vm.cli.exec( Streams the output of the command executed in the backend container. +When the extension defines its own `docker-compose.yaml` file +with multiple containers, the command is executed on the first container defined. +Change the order in which containers are defined to execute commands on another +container. + Example: Spawn the command `ls -l` inside the **backend container**: ```typescript