def docker_vm_is_running():
running_vms = check_output_demoted(['<STR_LIT>', '<STR_LIT:list>', '<STR_LIT>'])<EOL>for line in running_vms.splitlines():<EOL><INDENT>if '<STR_LIT>'.format(constants.VM_MACHINE_NAME) in line:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Using VBoxManage is 0.5 seconds or so faster than Machine.