Skip to content

Commit 3a3a71c

Browse files
authored
Update push.go to remove hardcoded references to Docker Hub (#587)
Resolves some confusing messages about Docker Hub when pushing images to alternative docker registries.
1 parent ab5f279 commit 3a3a71c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

commands/push.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (p *pushcmd) flags() []cli.Flag {
5353
},
5454
cli.StringFlag{
5555
Name: "registry",
56-
Usage: "Set the Docker owner for images and optionally the registry. This will be prefixed to your function name for pushing to Docker registries.\n eg: `--registry username` will set your Docker Hub owner. `--registry registry.hub.docker.com/username` will set the registry and owner.",
56+
Usage: "Set the Docker owner for images and optionally the registry. This will be prefixed to your function name for pushing to Docker registries.\n eg: `--registry username` will set only the owner prefix. `--registry registry.hub.docker.com/username` will set the registry and owner.",
5757
Destination: &p.registry,
5858
},
5959
}
@@ -81,7 +81,7 @@ func (p *pushcmd) push(c *cli.Context) error {
8181
return err
8282
}
8383

84-
fmt.Printf("Function %v pushed successfully to Docker Hub.\n", ff.ImageNameV20180708())
84+
fmt.Printf("Function %v pushed successfully to the registry.\n", ff.ImageNameV20180708())
8585
return nil
8686
}
8787

@@ -100,6 +100,6 @@ func (p *pushcmd) push(c *cli.Context) error {
100100
return err
101101
}
102102

103-
fmt.Printf("Function %v pushed successfully to Docker Hub.\n", ff.ImageName())
103+
fmt.Printf("Function %v pushed successfully to the registry.\n", ff.ImageName())
104104
return nil
105105
}

0 commit comments

Comments
 (0)