Skip to main content

Module exec

Module exec 

Source
Expand description

Container exec wrapper for running commands in containers

This module provides functions to execute commands inside running Docker containers, with support for capturing output and providing stdin input. Used for user management operations like useradd, chpasswd, etc.

Functionsยง

exec_command
Execute a command in a running container and capture output
exec_command_exit_code
Execute a command and return its exit code
exec_command_with_stdin
Execute a command with stdin input and capture output