Problem using 'docker plugin push' command

I am trying to develop a V2 plugin. I am able to to use the ‘docker plugin create’ and ‘docker plugin enable’ commands with my plugin configuration. However the ‘docker plugin push’ command fails with the following error

[root@localhost plugin]# docker plugin push adityadani/pxd-plugin
Error response from daemon: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

Here is my docker version

Client:
 Version:      1.13.0-rc4
 API version:  1.25
 Go version:   go1.7.3
 Git commit:   88862e7
 Built:        Sat Dec 17 01:34:17 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.13.0-rc4
 API version:  1.25 (minimum version 1.12)
 Go version:   go1.7.3
 Git commit:   88862e7
 Built:        Sat Dec 17 01:34:17 2016
 OS/Arch:      linux/amd64
 Experimental: false

I have made sure that repository exists and I have correct access to it. I am able to push other images but only ‘docker plugin push’ fails. In debug mode docker spits out this error

DEBU[0228] Calling POST /v1.25/plugins/adityadani/pxd-plugin:latest/push
DEBU[0228] Trying to push adityadani/pxd-plugin to https://registry-1.docker.io v2
DEBU[0229] Error in blobs.Create: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

To double check connectivity with docker registry w.r.t plugin commands I tried
docker plugin install cpuguy83/docker-overlay2-graphdriver-plugin
and it pulls the plugin and installs it fine.

Am I missing something here? Any help would be appreciated.

Hi,

Even i am facing same issue. Did you find a solution?

Currently the following commands should work.

$ docker plugin push <hub_name>/<plugin_name>:<tag>

However make sure that particular repository is not present in dockerhub. If you create one with that name it automatically becomes a “container” repo and you will not be able to push plugin to it.

Hi,
Many thanks.
I am trying from a windows server 2016 machine and I got this error,
“Error response from daemon: plugins are not supported on this platform”
The command I used is
docker tag hello-world:nanoserver vishnuvpotty/docker:test1
docker plugin push vishnuvpotty/docker:test1

When I tried docker push vishnuvpotty/docker:test1, I got his error
" 6c357baed9f5: Skipped foreign layer
denied: requested access to the resource is denied"