Skip to content

Docker updates /etc/hosts for all containers, I don't want it to #16619

@thockin

Description

@thockin

I swear this is recent - I have never seen it before 1.8 (but maybe I am nuts). It used to be that if you used docker links, the /etc/hosts file would be updated. Now it seems that ALL containers (even those without links) have their /etc/hosts files updated to know about all containers on the local machine.

Sniffing around this look like it might be libnetwork related, but I am not 100% sure.

How do I turn this off? Container names are not what we want to be exposing to users.

@mavenugo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions