mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Add docs for plugin push
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
This commit is contained in:
		
							parent
							
								
									6cf3976041
								
							
						
					
					
						commit
						d2bb29f87e
					
				
					 10 changed files with 72 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -14,8 +14,8 @@ import (
 | 
			
		|||
 | 
			
		||||
func newPushCommand(dockerCli *command.DockerCli) *cobra.Command {
 | 
			
		||||
	cmd := &cobra.Command{
 | 
			
		||||
		Use:   "push PLUGIN",
 | 
			
		||||
		Short: "Push a plugin",
 | 
			
		||||
		Use:   "push NAME[:TAG]",
 | 
			
		||||
		Short: "Push a plugin to a registry",
 | 
			
		||||
		Args:  cli.ExactArgs(1),
 | 
			
		||||
		RunE: func(cmd *cobra.Command, args []string) error {
 | 
			
		||||
			return runPush(dockerCli, args[0])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,10 +49,11 @@ The plugin can subsequently be enabled for local use or pushed to the public reg
 | 
			
		|||
 | 
			
		||||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,10 +53,11 @@ tiborvass/no-remove   latest              A test plugin for Docker   false
 | 
			
		|||
 | 
			
		||||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -54,9 +54,10 @@ tiborvass/no-remove   latest              A test plugin for Docker   true
 | 
			
		|||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -154,9 +154,10 @@ $ docker plugin inspect -f '{{.Id}}' tiborvass/no-remove:latest
 | 
			
		|||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -60,9 +60,10 @@ tiborvass/no-remove   latest              A test plugin for Docker   true
 | 
			
		|||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,9 +43,10 @@ tiborvass/no-remove   latest              A test plugin for Docker   true
 | 
			
		|||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										50
									
								
								docs/reference/commandline/plugin_push.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								docs/reference/commandline/plugin_push.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,50 @@
 | 
			
		|||
---
 | 
			
		||||
title: "plugin push"
 | 
			
		||||
description: "the plugin push command description and usage"
 | 
			
		||||
keywords: "plugin, push"
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<!-- This file is maintained within the docker/docker Github
 | 
			
		||||
     repository at https://github.com/docker/docker/. Make all
 | 
			
		||||
     pull requests against that repo. If you see this file in
 | 
			
		||||
     another repository, consider it read-only there, as it will
 | 
			
		||||
     periodically be overwritten by the definitive file. Pull
 | 
			
		||||
     requests which include edits to this file in other repositories
 | 
			
		||||
     will be rejected.
 | 
			
		||||
-->
 | 
			
		||||
 | 
			
		||||
```markdown
 | 
			
		||||
Usage:  docker plugin push NAME[:TAG]
 | 
			
		||||
 | 
			
		||||
Push a plugin to a registry
 | 
			
		||||
 | 
			
		||||
Options:
 | 
			
		||||
      --help       Print usage
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Use `docker plugin create` to create the plugin. Once the plugin is ready for distribution,
 | 
			
		||||
use `docker plugin push` to share your images to the Docker Hub registry or to a self-hosted one.
 | 
			
		||||
 | 
			
		||||
Registry credentials are managed by [docker login](login.md).
 | 
			
		||||
 | 
			
		||||
The following example shows how to push a sample `user/plugin`.
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
 | 
			
		||||
$ docker plugin ls
 | 
			
		||||
NAME                  	TAG                 DESCRIPTION                  ENABLED
 | 
			
		||||
user/plugin             latest              A sample plugin for Docker   false
 | 
			
		||||
 | 
			
		||||
$ docker plugin push user/plugin
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			@ -46,9 +46,10 @@ tiborvass/no-remove
 | 
			
		|||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin set](plugin_set.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -90,9 +90,10 @@ $ docker plugin inspect -f '{{.Settings.Args}}' myplugin
 | 
			
		|||
## Related information
 | 
			
		||||
 | 
			
		||||
* [plugin create](plugin_create.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin disable](plugin_disable.md)
 | 
			
		||||
* [plugin enable](plugin_enable.md)
 | 
			
		||||
* [plugin inspect](plugin_inspect.md)
 | 
			
		||||
* [plugin install](plugin_install.md)
 | 
			
		||||
* [plugin ls](plugin_ls.md)
 | 
			
		||||
* [plugin push](plugin_push.md)
 | 
			
		||||
* [plugin rm](plugin_rm.md)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue