salt.modules.container_resource

Common resources for LXC and systemd-nspawn containers

These functions are not designed to be called directly, but instead from the lxc and the (future) nspawn execution modules.

salt.modules.container_resource.run(name, cmd, output=None, no_start=False, stdin=None, python_shell=True, output_loglevel='debug', ignore_retcode=False, use_vt=False)

Common logic for running shell commands in containers

Requires the full command to be passed to cmd.run/cmd.run_all