#NEWLINE# def run( container , cmd ) : #NEWLINE# #INDENT# "\n    Wrapper for :py:func:`cmdmod.run<salt.modules.cmdmod.run>` inside a container context\n\n    container\n        container id (or grain)\n\n    cmd\n        command to execute\n\n    .. note::\n        The return is a bit different as we use the docker struct.\n        Output of the command is in 'out' and result is always ``True``.\n\n    .. warning::\n        Be advised that this function allows for raw shell access to the named\n        container! If allowing users to execute this directly it may allow more\n        rights than intended!\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' docker.run <container id> 'ls -l /etc'\n    " #NEWLINE# status = base_status . copy ( ) #NEWLINE# return _run_wrapper ( status , container , 'cmd.run' , cmd )