(self, cmdp)
return self.STATUS_ERROR
create: extract image layers and create a container
        create [options]  <repo/image:tag>
        --name=<container-name>    :set or change the name of the container
create: extract image layers and create a container
        create [options]  <repo/image:tag>
        --name=<container-name>    :set or change the name of the container
create : extract image layers and create a container create [ options ] <repo / image : tag > -- name = <container - name > : set or change the name of the container
def do_create(self, cmdp):
        """
        create: extract image layers and create a container
        create [options]  <repo/image:tag>
        --name=<container-name>    :set or change the name of the container
        """
        imagespec = cmdp.get("P1")
        name = cmdp.get("--name=")
        if cmdp.missing_options():               # syntax error
            return self.STATUS_ERROR

        container_id = self._create(imagespec)
        if container_id:
            Msg().out(container_id)
            if name and not self.localrepo.set_container_name(container_id,
                                                              name):
                Msg().err("Error: invalid container name may already exist "
                          "or wrong format")
                return self.STATUS_ERROR
            return self.STATUS_OK
        return self.STATUS_ERROR
def do_create ( self , cmdp ) : imagespec = cmdp . get ( "P1" ) name = cmdp . get ( "--name=" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR container_id = self . _create ( imagespec ) if container_id : Msg ( ) . out ( container_id ) if name and not self . localrepo . set_container_name ( container_id , name ) : Msg ( ) . err ( "Error: invalid container name may already exist " "or wrong format" ) return self . STATUS_ERROR return self . STATUS_OK return self . STATUS_ERROR