Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Update docs to clarify registry-login command #221

Merged
merged 1 commit into from Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion USER_GUIDE.md
Expand Up @@ -183,7 +183,7 @@ If you are using Dockerhub you only need to supply your `--username` and `--pass
```sh

ofc-bootstrap registry-login --username <your-registry-username> --password-stdin
(the enter your password and hit return)
(then enter your password and use ctrl+d to finish input)
```

You could also have you password in a file, or environment variable and echo/cat this instead of entering interactively
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry_login.go
Expand Up @@ -26,7 +26,7 @@ func init() {
registryLoginCommand.Flags().String("server", "https://index.docker.io/v1/", "The server URL, it is defaulted to the docker registry")
registryLoginCommand.Flags().String("username", "", "The Registry Username")
registryLoginCommand.Flags().String("password", "", "The registry password")
registryLoginCommand.Flags().BoolP("password-stdin", "s", false, "Reads the gateway password from stdin")
registryLoginCommand.Flags().BoolP("password-stdin", "s", false, "Reads the docker password from stdin, either pipe to the command or remember to press ctrl+d when reading interactively")

registryLoginCommand.Flags().Bool("ecr", false, "If we are using ECR we need a different set of flags, so if this is set, we need to set --username and --password")
registryLoginCommand.Flags().String("account-id", "", "Your AWS Account id")
Expand Down