Section 5.3, “Copy Image to Private Registry using Docker”, but
you might use Skopeo.
is a container utility that can also run as a container. The
following example copies the operator image from DockerHub to a
private registry. It needs to run on a host that has Docker or
Podman, and also that has access to both DockerHub and your
private registry. Change the variable names to fit your
environment, and change docker to podman if using Podman. The
OPERATOR_VERSION is the MySQL Operator for Kubernetes version,
export REGISTRY="..." # for example 192.168.20.199:5000 export REPOSITORY="..." # for example mysql export OPERATOR_VERSION=$(grep appVersion helm/mysql-operator/Chart.yaml | cut -d '"' -f2) docker run --rm quay.io/skopeo/stable copy docker://mysql/mysql-operator:$OPERATOR_VERSION docker://$REGISTRY/$REPOSITORY/mysql-operator:$OPERATOR_VERSION
For authenticated private registries, append
--dest-creds user:pass to the skopeo command.
--dest-tls-verify=false if it
does not use TLS.