Running a DNS service for docker containers always messes with the DNS settings of your workstation. Especially if these DNS/discovery services themselves run inside docker containers on an active development workstation. Resolving DNS issues is not an easy task. Contrary to that the hosts file is simple. The script first removes all existing entries of all the hostnames of containers created by docker-compose. Configure the environment variables in your .env file. That way it can be used by docker-compose as well (DRY).

Features

  • Add to your PHP project
  • Automate docker-compose
  • Add container hostnames and IPs to hosts file
  • Remove container hostnames and IPs from hosts file
  • Run behat tests. Any additional parameters will be added to the behat command
  • Remove container hostnames and IPs from hosts file and destroy the docker containers

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Docker tools

Docker tools Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Docker tools!

Additional Project Details

Programming Language

Unix Shell

Related Categories

Unix Shell Container Management Software

Registered

2023-02-13