Skip to content

Commit 86cad93

Browse files
authored
Merge pull request #77767 from stevsmit/IR-29703-OCPBUGS
Adds two commands for procedure accuracy
2 parents 988b173 + f739235 commit 86cad93

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

modules/installation-adding-registry-pull-secret.adoc

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,50 @@ The contents of the file resemble the following example:
9999
----
100100
// An additional step for following this procedure when using oc-mirror as part of the disconnected install process.
101101
ifdef::oc-mirror[]
102-
. Save the file either as `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`.
103-
endif::[]
104-
105-
ifdef::oc-mirror-v2[]
106-
. Save the file as `$XDG_RUNTIME_DIR/containers/auth.json`.
102+
. Save the file as either `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`:
103+
.. If the `.docker` or `$XDG_RUNTIME_DIR/containers` directories do not exist, create one by entering the following command:
104+
+
105+
[source,terminal]
106+
----
107+
$ mkdir -p <directory_name>
108+
----
109+
+
110+
Where `<directory_name>` is either `~/.docker` or `$XDG_RUNTIME_DIR/containers`.
111+
.. Copy the pull secret to the appropriate directory by entering the following command:
112+
+
113+
[source,terminal]
114+
----
115+
$ cp <path>/<pull_secret_file_in_json> <directory_name>/<auth_file>
116+
----
117+
+
118+
Where `<directory_name>` is either `~/.docker` or `$XDG_RUNTIME_DIR/containers`, and `<auth_file>` is either `config.json` or `auth.json`.
107119
endif::[]
108120
// Similar to the additional step above, except it is framed as optional because it is included in a disconnected update page (where users may or may not use oc-mirror for their process)
109121
ifdef::update-oc-mirror[]
110-
. Optional: If using the oc-mirror plugin, save the file either as `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`.
122+
. Optional: If using the oc-mirror plugin, save the file as either `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`:
123+
.. If the `.docker` or `$XDG_RUNTIME_DIR/containers` directories do not exist, create one by entering the following command:
124+
+
125+
[source,terminal]
126+
----
127+
$ mkdir -p <directory_name>
128+
----
129+
+
130+
Where `<directory_name>` is either `~/.docker` or `$XDG_RUNTIME_DIR/containers`.
131+
.. Copy the pull secret to the appropriate directory by entering the following command:
132+
+
133+
[source,terminal]
134+
----
135+
$ cp <path>/<pull_secret_file_in_json> <directory_name>/<auth_file>
136+
----
137+
+
138+
Where `<directory_name>` is either `~/.docker` or `$XDG_RUNTIME_DIR/containers`, and `<auth_file>` is either `config.json` or `auth.json`.
111139
endif::[]
140+
// Additional step for allowing this procedure for oc-mirror-v2
141+
ifdef::oc-mirror-v2[]
142+
. Save the file as `$XDG_RUNTIME_DIR/containers/auth.json`.
112143
endif::[]
113-
144+
endif::[]
145+
114146
. Generate the base64-encoded user name and password or token for your mirror registry:
115147
+
116148
[source,terminal]

0 commit comments

Comments
 (0)