PODMAN: How To Connect To Insecure Private Container Registry Using OpenSSL Certificates From podman
Follow below steps. Steps in this doc are tested on Oracle Linux OS, but steps would be similar on other Operating systems
1) On the client machine where you have podman, Update /etc/containers/registries.conf file with just these entries. Replace localregistry.oracle.com with the local registry host and <port>> with port where you have localregistry listening.
[[registry]]
location = "ocr-localregitry.oracle.com:<port>"
insecure = true
2) On the client machine where you have podman, Restart system daemon and podman.
systemctl daemon-reload
systemctl restart podman
3) Do testing by pulling the images using podman from insecure container registry.
Pull the images using podman pull. As you can see it works.
podman pull local-registry:<port>/<image location and name>
4) Verify that you can see images using below command.
podman images
No comments:
Post a Comment