according to docs for pulling from and pushing to a local registry, you have to tag an image like this :
docker image tag rhel-httpd:latest registry-host:5000/myadmin/rhel-httpd:latest
docker image push registry-host:5000/myadmin/rhel-httpd:latest
right now I have a lot of deployments and helm charts in my on-prem k8s cluster and it's not really convenient to rename all the reference images every time our registry address changes. is there any way to change the default registry without tagging the images?
i'm using registry:2
image to run a local docker registry with docker compose like this:
version: "3"
services:
registry:
image: registry:2
ports:
- 5000:5000
environment:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
restart: unless-stopped
volumes:
- ./data:/data