https://github.com/swagdevops/kamaze-docker_hosts
Keep hosts up-to-date with docker network.
https://github.com/swagdevops/kamaze-docker_hosts
docker docker-hosts docker-network hosts hosts-file hosts-manage hostsfile
Last synced: 10 months ago
JSON representation
Keep hosts up-to-date with docker network.
- Host: GitHub
- URL: https://github.com/swagdevops/kamaze-docker_hosts
- Owner: SwagDevOps
- License: gpl-3.0
- Created: 2018-07-06T07:57:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T00:33:19.000Z (over 7 years ago)
- Last Synced: 2025-02-17T09:15:12.997Z (about 1 year ago)
- Topics: docker, docker-hosts, docker-network, hosts, hosts-file, hosts-manage, hostsfile
- Language: Ruby
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Keep hosts up-to-date with ``docker-api``
``kamaze-docker_hosts`` is based on top of [``docker-api``][docker-api].
It provides a CLI, through ``docker-hosts`` executable,
to manipulate the operating system's host files. ``watch`` command will keep
``hosts`` file updated according to ``docker`` network changes.
In the future, ``cli`` will be separated from the ``core`` library.
## Configuration
``cli`` uses the ``core`` config files, unless ``/etc/docker-hosts``
config directory is present with expected files.
Config directory can also be given from the ``cli`` option
``-c`` or ``--config``.
Config can be displayed (after __overlaying__)
with the ``config`` command, rendered with JSON notation.
[docker-api]: https://github.com/swipely/docker-api