@staticmethod<EOL><INDENT>def internal_run_container(name, callback_method, foreground=False):<DEDENT>
if not foreground:<EOL><INDENT>logger.info("<STR_LIT>".format(name))<EOL>nspawn_process = NspawnContainer._internal_reschedule(callback_method)<EOL>NspawnContainer._wait_for_machine_booted(name)<EOL>logger.info("<STR_LIT>" % name)<EOL>return nspawn_process<EOL><DEDENT>else:<EOL><INDENT>logger.info("<STR_LIT>".format(name))<EOL>return callback_method[<NUM_LIT:0>](callback_method[<NUM_LIT:1>], *callback_method[<NUM_LIT:2>], **callback_method[<NUM_LIT:3>])<EOL><DEDENT>
Internal method what runs container process

:param name: str - name of container
:param callback_method: list - how to invoke container
:param foreground: bool run in background by default
:return: suprocess instance