Skip to content

Can't use docker-registry.default.svc in pod spec #222

@phemmer

Description

@phemmer

If you try to use image: 'docker-registry.default.svc:5000/mynamespace/myimage' in a pod spec, you'll get errors such as:

Failed to pull image "docker-registry.default.svc:5000/mynamespace/myimage": rpc error: code = 2 desc = Get https://docker-registry.default.svc:5000/v1/_ping: dial tcp: lookup docker-registry.default.svc: no such host

This is happening because docker itself uses the host's DNS configuration, which isn't using the kubernetes DNS service.

My own thoughts: It seems like the way to fix this is to ensure the centos image is using dnsmasq (which it currently is not), reroute the cluster.local domain to the kubernetes DNS service, and add the domain to the search list as well.

(ref: openshift/origin#16097)

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