(self, cmdp)
return self.STATUS_ERROR
pull: download images from docker hub
        pull [options] <repo/image:tag>
        --httpproxy=socks4://user:pass@host:port        :use http proxy
        --httpproxy=socks5://user:pass@host:port        :use http proxy
        --httpproxy=socks4://host:port                  :use http proxy
        --httpproxy=socks5://host:port                  :use http proxy
        --httpproxy=socks4a://user:pass@host:port       :use http proxy
        --httpproxy=socks5h://user:pass@host:port       :use http proxy
        --httpproxy=socks4a://host:port                 :use http proxy
        --httpproxy=socks5h://host:port                 :use http proxy
        --index=https://index.docker.io/v1              :docker index
        --registry=https://registry-1.docker.io         :docker registry

        Examples:
          pull fedora:latest
          pull quay.io/something/somewhere:latest
pull: download images from docker hub
        pull [options] <repo/image:tag>
        --httpproxy=socks4://user:pass@host:port        :use http proxy
        --httpproxy=socks5://user:pass@host:port        :use http proxy
        --httpproxy=socks4://host:port                  :use http proxy
        --httpproxy=socks5://host:port                  :use http proxy
        --httpproxy=socks4a://user:pass@host:port       :use http proxy
        --httpproxy=socks5h://user:pass@host:port       :use http proxy
        --httpproxy=socks4a://host:port                 :use http proxy
        --httpproxy=socks5h://host:port                 :use http proxy
        --index=https://index.docker.io/v1              :docker index
        --registry=https://registry-1.docker.io         :docker registry
pull : download images from docker hub pull [ options ] <repo / image : tag > -- httpproxy = socks4 : // user : pass@host : port : use http proxy -- httpproxy = socks5 : // user : pass@host : port : use http proxy -- httpproxy = socks4 : // host : port : use http proxy -- httpproxy = socks5 : // host : port : use http proxy -- httpproxy = socks4a : // user : pass@host : port : use http proxy -- httpproxy = socks5h : // user : pass@host : port : use http proxy -- httpproxy = socks4a : // host : port : use http proxy -- httpproxy = socks5h : // host : port : use http proxy -- index = https : // index . docker . io / v1 : docker index -- registry = https : // registry - 1 . docker . io : docker registry
def do_pull(self, cmdp):
        """
        pull: download images from docker hub
        pull [options] <repo/image:tag>
        --httpproxy=socks4://user:pass@host:port        :use http proxy
        --httpproxy=socks5://user:pass@host:port        :use http proxy
        --httpproxy=socks4://host:port                  :use http proxy
        --httpproxy=socks5://host:port                  :use http proxy
        --httpproxy=socks4a://user:pass@host:port       :use http proxy
        --httpproxy=socks5h://user:pass@host:port       :use http proxy
        --httpproxy=socks4a://host:port                 :use http proxy
        --httpproxy=socks5h://host:port                 :use http proxy
        --index=https://index.docker.io/v1              :docker index
        --registry=https://registry-1.docker.io         :docker registry

        Examples:
          pull fedora:latest
          pull quay.io/something/somewhere:latest
        """
        index_url = cmdp.get("--index=")
        registry_url = cmdp.get("--registry=")
        http_proxy = cmdp.get("--httpproxy=")
        (imagerepo, tag) = self._check_imagespec(cmdp.get("P1"))
        if (not imagerepo) or cmdp.missing_options():    # syntax error
            return self.STATUS_ERROR

        self._set_repository(registry_url, index_url, imagerepo, http_proxy)
        v2_auth_token = self.keystore.get(self.dockerioapi.registry_url)
        self.dockerioapi.set_v2_login_token(v2_auth_token)
        if self.dockerioapi.get(imagerepo, tag):
            return self.STATUS_OK

        Msg().err("Error: no files downloaded")
        return self.STATUS_ERROR
def do_pull ( self , cmdp ) : index_url = cmdp . get ( "--index=" ) registry_url = cmdp . get ( "--registry=" ) http_proxy = cmdp . get ( "--httpproxy=" ) ( imagerepo , tag ) = self . _check_imagespec ( cmdp . get ( "P1" ) ) if ( not imagerepo ) or cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR self . _set_repository ( registry_url , index_url , imagerepo , http_proxy ) v2_auth_token = self . keystore . get ( self . dockerioapi . registry_url ) self . dockerioapi . set_v2_login_token ( v2_auth_token ) if self . dockerioapi . get ( imagerepo , tag ) : return self . STATUS_OK Msg ( ) . err ( "Error: no files downloaded" ) return self . STATUS_ERROR