AliyunContainerService / pouch

An Efficient Enterprise-class Container Engine
https://pouchcontainer.io
Apache License 2.0
4.64k stars 949 forks source link

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

Closed jeffgx619 closed 5 years ago

jeffgx619 commented 5 years ago

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 ?

hellolijj commented 5 years ago

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 commented 5 years ago

We has supported push functionality.

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

Thanks for reporting.

akawhy commented 5 years ago

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