Menginstall skopeo :

sudo apt install skopeo

Login docker dulu ke masing – masing registry

Login ke registry 1

root@masadmin:~# docker login registry1.wachid.web.id:10443
Username: admin
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
root@masadmin:~#

Login ke registry 2

root@masadmin:~# docker login registry2.wachid.web.id:9443
Username: ngadmin
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
root@masadmin:~#

Mulai mengkopi

root@masadmin:~# skopeo copy docker://registry1.wachid.web.id:10443/projectku/web-aplikasi:1.0.1 docker://registry2.wachid.web.id:9443/projectku/web-aplikasi:1.0.1
Getting image source signatures
Copying blob 98b2678b9050 done
Copying blob 9788483d48f8 done
Copying blob 59bf1c3509f3 done
Copying blob 46f73b01ae5f done
Copying blob 837571a6faae done
Copying blob 78d785bdc4db done
Copying blob 6eca4770b676 done
Copying blob c2ebe1cbade0 done
Copying blob 525cba633347 done
Copying blob aedff94c9b87 done
Copying blob 90d069258199 done
Copying blob 4f4fb700ef54 done
Copying blob 6a0f6e07921b done
Copying blob e483c61f915d done
Copying blob 3882bb961af0 done
Copying blob 8ab22c392e8d done
Copying blob 986b8bfef087 done
Copying blob 7672427fa05c done
Copying blob fe632944727a done
Copying config 30b129e478 done
Writing manifest to image destination
Storing signatures
root@masadmin:~#

Leave a Reply

Your email address will not be published. Required fields are marked *