def command_list(command, command_args=[], **kwds):
 command_parts = _docker_prefix(**kwds)
 command_parts.append(command)
 command_parts.extend(command_args)
 return command_parts

def command_list ( command , command_args = [ ] , ** kwds ) : command_parts = _docker_prefix ( ** kwds ) command_parts . append ( command ) command_parts . extend ( command_args ) return command_parts
return docker command as an argv list .