| ... | ... |
@@ -766,6 +766,9 @@ Create a new secret based on a key file or on files within a directory |
| 766 | 766 |
|
| 767 | 767 |
// Create a new secret named my-secret with keys for each file in the folder "bar" |
| 768 | 768 |
$ openshift cli secrets new my-secret path/to/bar |
| 769 |
+ |
|
| 770 |
+ // Create a new .dockercfg secret named my-secret |
|
| 771 |
+ $ openshift cli secrets new my-secret path/to/.dockercfg |
|
| 769 | 772 |
---- |
| 770 | 773 |
==== |
| 771 | 774 |
|
| ... | ... |
@@ -35,13 +35,13 @@ by creating a dockercfg secret and attaching it to your service account. |
| 35 | 35 |
|
| 36 | 36 |
If you don't already have a .dockercfg file, you can create a dockercfg secret directly by using: |
| 37 | 37 |
|
| 38 |
- $ %s SECRET_NAME --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL |
|
| 38 |
+ $ %[1]s SECRET_NAME --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL |
|
| 39 | 39 |
|
| 40 | 40 |
If you do already have a .dockercfg file, you can create a dockercfg secret by using: |
| 41 | 41 |
|
| 42 |
- $ %s SECRET_NAME path/to/.dockercfg |
|
| 42 |
+ $ %[2]s SECRET_NAME path/to/.dockercfg |
|
| 43 | 43 |
|
| 44 |
-You can then use '%s SERVICE_ACCOUNT' to add the new secret to 'imagePullSecrets' for the node to use or |
|
| 44 |
+You can then use '%[3]s SERVICE_ACCOUNT' to add the new secret to 'imagePullSecrets' for the node to use or |
|
| 45 | 45 |
'secrets' for builds to use. |
| 46 | 46 |
` |
| 47 | 47 |
) |
| ... | ... |
@@ -37,7 +37,10 @@ using with all valid keys in that directory. |
| 37 | 37 |
$ %[1]s my-secret ssh-privatekey=~/.ssh/id_rsa ssh-publickey=~/.ssh/id_rsa.pub |
| 38 | 38 |
|
| 39 | 39 |
// Create a new secret named my-secret with keys for each file in the folder "bar" |
| 40 |
- $ %[1]s my-secret path/to/bar` |
|
| 40 |
+ $ %[1]s my-secret path/to/bar |
|
| 41 |
+ |
|
| 42 |
+ // Create a new .dockercfg secret named my-secret |
|
| 43 |
+ $ %[1]s my-secret path/to/.dockercfg` |
|
| 41 | 44 |
) |
| 42 | 45 |
|
| 43 | 46 |
type CreateSecretOptions struct {
|