Search code examples
dockerdocker-registry

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


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 ?


Solution

  • 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