Skip to content

properly support CIDR syntax for insecure registries #34

@miabbott

Description

@miabbott

The --insecure-registry flag for dockerd supports the use of a CIDR syntax to indicate that any IPs in a range should be treated as insecure. From the dockerd documenation:

--insecure-registry 10.1.0.0/16 tells the Docker daemon that all registries whose domain
resolve to an IP address is part of the subnet described by the CIDR syntax,
should be considered insecure.

However, after discussing with @baude, it seems that crio, podman and the like do not support the CIDR syntax.

So I think registries and/or its consumers should support the CIDR syntax to offer parity with the Docker ecosystem.

Worth noting that I arrived at this issue because I tried to use oc cluster up on a host and it initially failed with the following error and provided a workaround:

-- Checking Docker daemon configuration ... FAIL                                                                                                                                                                   
   Error: did not detect an --insecure-registry argument on the Docker daemon                                                                                                                                      
   Solution:                                                                                                                                                                                                       
                                                                                                         
     Ensure that the Docker daemon is running with the following argument:                                                                                                                                         
        --insecure-registry 172.30.0.0/16                                

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions