registries-conf-ctl. A CLI tool to modify /etc/registries/registries.conf. Also supports Docker's daemon.json
NOTE: At this point, this tool only allows adding mirror registries.
Usage:
registries-conf-ctl [options] add-mirror <registry> <mirror> [--insecure] [--http]
registries-conf-ctl [options] list-mirrors <registry>
registries-conf-ctl [options] add-registry <registry> [--location=location] [--insecure] [--unqualified-search]
registries-conf-ctl -h | --help
registries-conf-ctl --version
Options:
-h --help Show this screen.
--version Show version.
--conf=<conf> registries.conf [default: /etc/containers/registries.conf,/etc/docker/daemon.json].
--docker Treat `--conf` as a docker config file
--insecure Mark registry as insecure
--http HTTP registry mirror (Docker only)
Install directly from github like so:
pip install git+https://github.com/sebastian-philipp/registries-conf-ctl
Add a new mirror for docker.io:
registries-conf-ctl add-mirror docker.io <my-mirror>
systemctl restart docker
yes.
It will fail.
no.