How to allow multiple '--insecure-registry' for docker registry

mainframer picture mainframer · Oct 16, 2015 · Viewed 17.8k times · Source

As we all known, we can add one --insecure-registry to the /etc/default/docker config file to allow insecure registry, like this:

DOCKER_OPTS="$DOCKER_OPTS --insecure-registry myregistry:5000"

My question is: Does it support adding more than one --insecure-registry since we need to communicate with more than one registries ?

Answer

michaelbahr picture michaelbahr · Oct 16, 2015

You can specify multiple insecure registries by lining them up:

--insecure-registry IP1:PORT --insecure-registry IP2:PORT --insecure-registry IP3:PORT

Source: https://github.com/docker/docker/issues/9026