Skip to content

Support networks #4

Description

@iamluc

Hello,

I just discovered this project and I like it !

I have a little project that updates the /etc/hosts automatically (https://github.com/iamluc/docker-hostmanager) and I think it could be replaced by nss-docker.

However, IMHO, you should support docker networks.
For example, when a container app is launched in a network myproject_default, I would like to access my container with hostname app.myproject_default instead of app.docker.
Especially since there can be several networks for the same container, with differents IP address.

En bonus, it could manage alias and labels.

As a reference, this is how I manage the hosts in my project https://github.com/iamluc/docker-hostmanager/blob/master/src/Synchronizer.php#L115

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions