@@ -163,11 +163,27 @@ Let's copy a container from a remote registry to a local registry (the one runni
163163
164164Having a Docker Host running in local machine, run the following command:
165165
166+ [tabs]
167+ ====
168+ Docker::
169+ +
170+ --
166171[.console-input]
167172[source,bash,subs="+macros,+attributes"]
168173----
169174skopeo copy docker://quay.io/rhdevelopers/quarkus-demo:v1 docker-daemon:docker.io/rhdevelopers/quarkus-demo:skopeo
170175----
176+ --
177+ Podman::
178+ +
179+ --
180+ [.console-input]
181+ [source,bash,subs="+macros,+attributes"]
182+ ----
183+ skopeo copy docker://quay.io/rhdevelopers/quarkus-demo:v1 containers-storage:rhdevelopers/quarkus-demo:skopeo
184+ ----
185+ --
186+ ====
171187
172188[.console-output]
173189[source,bash,subs="+macros,+attributes"]
@@ -189,7 +205,7 @@ If you run the `podman images` command, you'll see the image downloaded with the
189205[.console-input]
190206[source,bash,subs="+macros,+attributes"]
191207----
192- docker images
208+ podman images
193209----
194210
195211[.console-output]
@@ -208,9 +224,11 @@ Run the following command in a terminal window:
208224[.console-input]
209225[source,bash,subs="+macros,+attributes"]
210226----
211- podman run --rm -ti -p 5000:5000 --restart=always -- name registry registry:2
227+ podman run --rm -ti -p 5000:5000 --name registry registry:2
212228----
213229
230+ TIP: If your port 5000 is already in use, you can run the registry in a different port e.g. `-p 5001:5000` .
231+
214232In a new terminal window, run the `copy` command setting origin to quay.io and the destination, the registry created in the previous step:
215233
216234[.console-input]
@@ -244,7 +262,7 @@ time="2023-04-12T13:29:37.927391556Z" level=info msg="response completed" go.ver
244262172.17.0.1 - - [12/Apr/2023:13:29:37 +0000] "PUT /v2/rhdevelopers/quarkus-demo/manifests/skopeo HTTP/1.1" 201 0 "" "skopeo/1.11.1"
245263----
246264
247- Shut down the container registry by stopping the `docker run` process.
265+ Shut down the container registry by stopping the `podman run` process.
248266
249267== Deleting a Container
250268
0 commit comments