repo2docker/app.py
def validate_image_name(self, image_name):
        """
        Validate image_name read by argparse

        Note: Container names must start with an alphanumeric character and
        can then use _ . or - in addition to alphanumeric.
        [a-zA-Z0-9][a-zA-Z0-9_.-]+

        Args:
            image_name (string): argument read by the argument parser

        Returns:
            unmodified image_name

        Raises:
            ArgumentTypeError: if image_name contains characters that do not
                               meet the logic that container names must start
                               with an alphanumeric character and can then
                               use _ . or - in addition to alphanumeric.
                               [a-zA-Z0-9][a-zA-Z0-9_.-]+
        """
        if not is_valid_docker_image_name(image_name):
            msg = ("%r is not a valid docker image name. Image name"
                   "must start with an alphanumeric character and"
                   "can then use _ . or - in addition to alphanumeric." % image_name)
            raise argparse.ArgumentTypeError(msg)
        return image_name

        Validate image_name read by argparse

        Note: Container names must start with an alphanumeric character and
        can then use _ . or - in addition to alphanumeric.
        [a-zA-Z0-9][a-zA-Z0-9_.-]+

        Args:
            image_name (string): argument read by the argument parser

        Returns:
            unmodified image_name

        Raises:
            ArgumentTypeError: if image_name contains characters that do not
                               meet the logic that container names must start
                               with an alphanumeric character and can then
                               use _ . or - in addition to alphanumeric.
                               [a-zA-Z0-9][a-zA-Z0-9_.-]+
        
Validate image_name read by argparse
Note: Container names must start with an alphanumeric character and
can then use _ . or - in addition to alphanumeric.
Validate image_name read by argparse Note : Container names must start with an alphanumeric character and can then use _ . or - in addition to alphanumeric .
def validate_image_name(self, image_name):
        if not is_valid_docker_image_name(image_name):
            msg = ("%r is not a valid docker image name. Image name"
                   "must start with an alphanumeric character and"
                   "can then use _ . or - in addition to alphanumeric." % image_name)
            raise argparse.ArgumentTypeError(msg)
        return image_name
def validate_image_name ( self , image_name ) : if not is_valid_docker_image_name ( image_name ) : msg = ( "%r is not a valid docker image name. Image name" "must start with an alphanumeric character and" "can then use _ . or - in addition to alphanumeric." % image_name ) raise argparse . ArgumentTypeError ( msg ) return image_name
Validate image_name read by argparse
Note: Container names must start with an alphanumeric character and
can then use _ .
Validate image_name read by argparse Note : Container names must start with an alphanumeric character and can then use _ .
"""
        Validate image_name read by argparse

        Note: Container names must start with an alphanumeric character and
        can then use _ . or - in addition to alphanumeric.
        [a-zA-Z0-9][a-zA-Z0-9_.-]+

        Args:
            image_name (string): argument read by the argument parser

        Returns:
            unmodified image_name

        Raises:
            ArgumentTypeError: if image_name contains characters that do not
                               meet the logic that container names must start
                               with an alphanumeric character and can then
                               use _ . or - in addition to alphanumeric.
                               [a-zA-Z0-9][a-zA-Z0-9_.-]+
        """
None
if image_name contains characters that do not
meet the logic that container names must start
with an alphanumeric character and can then
use _ . or - in addition to alphanumeric.
if image_name contains characters that do not meet the logic that container names must start with an alphanumeric character and can then use _ . or - in addition to alphanumeric .
ArgumentTypeError
self
image_name
argument read by the argument parser
argument read by the argument parser