@staticmethod<EOL><INDENT>def get_volume_options(volumes):<DEDENT>
if not isinstance(volumes, list):<EOL><INDENT>volumes = [volumes]<EOL><DEDENT>volumes = [Volume.create_from_tuple(v) for v in volumes]<EOL>result = []<EOL>for v in volumes:<EOL><INDENT>result += ["<STR_LIT>", str(v)]<EOL><DEDENT>return result<EOL>
Generates volume options to run methods.

:param volumes: tuple or list of tuples in form target x source,target x source,target,mode.
:return: list of the form ["-v", "/source:/target", "-v", "/other/source:/destination:z", ...]