Following are steps to Setup Podman Registry Instance Running On Non SSL HTTP protocol?
1) Install podman (if its not already installed).
dnf -y install podman
2) Run podman instance by pulling container image. In this case we are pulling registry image from Oracle Container registry (OCR)
sudo podman run -d --name ock-registry \
-p 5000:5000 \
-v /var/lib/registry:/var/lib/registry:Z \
--restart=always \
-e REGISTRY_AUTH="" \
container-registry.oracle.com/os/registry:v2.7.1.1
3) Validate that the podman instance is running and podman registry image is pulled.
For this use below commands.
podman ps -a
podman images
Below is sample outputs of above commands.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5cd3575b4a36 container-registry.oracle.com/os/registry:v2.7.1.1 serve /etc/docker... 5 seconds ago Up 5 seconds 0.0.0.0:5000->5000/tcp ock-registry
podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
container-registry.oracle.com/os/registry v2.7.1.1 695bdaead1f4 6 years ago 490 MB
4) For connecting from the clients to private registry running on HTTP, set insecure registry.
For this follow below steps.
Edit /etc/containers/registries.conf file and insert the following text at the end of the file.
[[registry]]
location = "localhost:5000"
insecure = true
Reload daemon and restart podman service after the change.
systemctl daemon-reload
systemctl restart podman
Keywords
registry registries private offline air-gapped airgapped air gapped install installation installing setup setting up configure configuring configuration
No comments:
Post a Comment