mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Some test cases might need an ability to execute a command inside a container (in order to analyse its output and/or exit code). It is a bit complicated operation to do so using engine API. The function provided aims to hide this complexity, making exec almost as simple as 'docker exec'. NOTE that the exec is synchronous, and command's stdin is closed. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Upstream-commit: 01143afe54f1be7308c5663a0cc110740626c62b Component: engine