Docker module: Execute wrap

Execute a command inside an existing container.

Example

Run node named /info/ from OS module inside an existing container named space_container:

space -m os /info/ -m docker /wrap_exec/ -econtainer=space_container

Output:

[INFO]  OS_INFO: OS type: gnu.
[INFO]  OS_INFO: OS init system: systemd.
[INFO]  OS_INFO: OS package manager: apt.
[INFO]  OS_INFO: OS home directory: /home.
[INFO]  OS_INFO: Current directory: /..
Edit this page