Skip to content

Commit 5313b8e

Browse files
authored
Merge pull request #8020 from soltysh/unified_secrets
Point to a single place describing how to create secrets
2 parents 65199b2 + c9277e9 commit 5313b8e

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

dev_guide/managing_images.adoc

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ tag` command, but operates on image streams instead of directly on images.
6161
[NOTE]
6262
====
6363
See Red Hat Enterprise Linux 7's
64-
https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/version-7/getting-started-with-containers/#creating_docker_images[Getting
65-
Started with Containers] documentation for more about tagging images directly
66-
using the `docker` CLI.
64+
https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/version-7/getting-started-with-containers/#creating_docker_images[Getting Started with Containers]
65+
documentation for more about tagging images directly using the `docker` CLI.
6766
====
6867

6968
[[adding-tag]]
@@ -978,24 +977,10 @@ ifdef::openshift-origin,openshift-online,openshift-enterprise,openshift-dedicate
978977
An image stream can be configured to import tag and image metadata from private
979978
image registries, requiring authentication.
980979

981-
To configure this, you need to create a xref:../dev_guide/secrets.adoc#dev-guide-secrets[secret]
982-
which is used to store your credentials.
983-
984-
Create the secret first, before importing the image from the private repository:
985-
986-
----
987-
$ oc create secret docker-registry <secret_name> \
988-
--docker-server=<docker_registry_server> \
989-
--docker-username=<docker_user> \
990-
--docker-password=<docker_password> \
991-
--docker-email=<docker_email>
992-
----
993-
994-
For more options, see:
995-
996-
----
997-
$ oc create secret docker-registry --help
998-
----
980+
To configure this, you need to create a xref:../dev_guide/secrets.adoc#dev-guide-secrets[secret],
981+
which is used to store your credentials. See
982+
xref:#allowing-pods-to-reference-images-from-other-secured-registries[Allowing Pods to Reference Images from Other Secured Registries]
983+
for instructions on creating a secret using `oc create secret` command.
999984

1000985
After the secret is configured, proceed with creating the new image stream or
1001986
using the `oc import-image` command. During the import process, {product-title}

0 commit comments

Comments
 (0)