Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unknown command "push" for "pouch" #2960

Closed
jeffgx619 opened this issue Aug 11, 2019 · 3 comments
Closed

Error: unknown command "push" for "pouch" #2960

jeffgx619 opened this issue Aug 11, 2019 · 3 comments
Labels
areas/cli kind/bug This is bug report for project

Comments

@jeffgx619
Copy link

jeffgx619 commented Aug 11, 2019

I have installed pouch following the README doc.
But when I do pouch push , it gives me this error "Error: unknown command "push" for "pouch"". The other command, such as pouch pull and pouch ps, works fine.
The pouch version:

root@test-pod3-spp22:/# pouch version
GoVersion:       go1.10.4
KernelVersion:   3.10.0-327.ali2012.alios7.x86_64
Os:              linux
Version:         1.3.0
APIVersion:      1.24
Arch:            amd64
BuildTime:       2019-05-22T11:41:19+08:00
GitCommit:       rpm-1.0.0.21

Could you help me to solve this, please ?

@pouchrobot pouchrobot added areas/cli kind/bug This is bug report for project labels Aug 11, 2019
@hellolijj
Copy link
Contributor

pouch has supported pouch push command.

[root@aliyun ~]# pouch push -h
Push a local image to remote registry.

Usage:
  pouch push IMAGE[:TAG]

Examples:
$ pouch push docker.io/testing/busybox:1.25
docker.io/testing/busybox:1.25:                                                   resolved |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:29f5d56d12684887bdfa50dcd29fc31eea4aaf4ad3bec43daf19026a7ce69912: done
layer-sha256:56bec22e355981d8ba0878c6c2f23b21f422f30ab0aba188b54f1ffeff59c190:    done
config-sha256:e02e811dd08fd49e7f6032625495118e63f597eb150403d02e3238af1df240ba:   done
elapsed: 0.0 s                                                                    total:   0.0 B (0.0 B/s)


Flags:
  -h, --help   help for push

Global Flags:
  -D, --debug              Switch client log level to DEBUG mode
  -H, --host string        Specify connecting address of Pouch CLI (default "unix:///var/run/pouchd.sock")
      --tlscacert string   Specify CA file of TLS
      --tlscert string     Specify cert file of TLS
      --tlskey string      Specify key file of TLS
      --tlsverify          Use TLS and verify remote
[root@aliyun ~]# pouch push -h
Push a local image to remote registry.

Usage:
  pouch push IMAGE[:TAG]

Examples:
$ pouch push docker.io/testing/busybox:1.25
docker.io/testing/busybox:1.25:                                                   resolved |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:29f5d56d12684887bdfa50dcd29fc31eea4aaf4ad3bec43daf19026a7ce69912: done
layer-sha256:56bec22e355981d8ba0878c6c2f23b21f422f30ab0aba188b54f1ffeff59c190:    done
config-sha256:e02e811dd08fd49e7f6032625495118e63f597eb150403d02e3238af1df240ba:   done
elapsed: 0.0 s                                                                    total:   0.0 B (0.0 B/s)


Flags:
  -h, --help   help for push

Global Flags:
  -D, --debug              Switch client log level to DEBUG mode
  -H, --host string        Specify connecting address of Pouch CLI (default "unix:///var/run/pouchd.sock")
      --tlscacert string   Specify CA file of TLS
      --tlscert string     Specify cert file of TLS
      --tlskey string      Specify key file of TLS
      --tlsverify          Use TLS and verify remote

maybe you should reinstall pouch.

@fuweid
Copy link
Contributor

fuweid commented Oct 11, 2019

We has supported push functionality.

Please check the https://github.com/alibaba/pouch/blob/master/cli/push.go.

Thanks for reporting.

@fuweid fuweid closed this as completed Oct 11, 2019
@akawhy
Copy link

akawhy commented Nov 1, 2019

I install pouch from yum install pouch. The lastest version 1.3.0 still don't have the push command.

version info


$sudo pouch version
BuildTime:       2019-06-13T11:25:25+00:00
GitCommit:       1.3.0
GoVersion:       go1.10.4
KernelVersion:   3.10.0-327.ali2018.alios7.x86_64
Os:              linux
Version:         1.3.0
APIVersion:      1.24
Arch:            amd64

package info


$sudo yum info pouch
Loaded plugins: branch, fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Installed Packages
Name        : pouch
Arch        : x86_64
Version     : 1.3.0
Release     : 1.el7
Size        : 145 M
Repo        : installed
Summary     : _
URL         : https://github.com/alibaba/pouch
License     : Apache License 2.0
Description :  .

command


$sudo pouch push ttttt
Error: unknown command "push" for "pouch"

Did you mean this?
        pull
        ps
        pause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/cli kind/bug This is bug report for project
Projects
None yet
Development

No branches or pull requests

5 participants