Skip to content

🐋 ~ Small tool to add container address into hosts file on Windows and Linux

License

Notifications You must be signed in to change notification settings

bramanda48/docker-hosts-writer

Repository files navigation

Screenshoot

Docker Hosts Writer

Small tool to add container address into hosts file on Windows and Linux

Build .NET 6 GitHub release License

Installation & Usage

  1. Download latest version application in Release Page
  2. Open the application. if the app asks for administrator permission, click yes.

Help

This application also provides special options to set location of the hosts file, docker endpoint etc via command line arguments.
You can use --help options to see the list argument.

docker-hosts-writer 1.0.0
Copyright (C) 2023 bramanda48

  -e, --endpoint      (Optional) Docker Engine API endpoint. Default:
                      in Windows = npipe://./pipe/docker_engine
                      in Linux = unix:///var/run/docker.sock

  -f, --hosts-file    (Optional) Hosts location. Default:
                      in Windows = %windir%\system32\drivers\etc\hosts
                      in Linux = /etc/hosts

  -s, --suffix        (Optional) Suffix for every domain.

  -p, --prefix        (Optional) Prefix for every domain. Default: .docker

  -v, --verbose       (Optional) Set output to verbose messages.

  --help              Display this help screen.

  --version           Display version information.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Inspiration, code snippets, icon, etc.

About

🐋 ~ Small tool to add container address into hosts file on Windows and Linux

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages