docker-hoster
docker-hoster copied to clipboard
A simple "etc/hosts" file injection tool to resolve names of local Docker containers on the host.
On some machines the hosts file could not be updated correctly. For this reason, I have extended the hoster so that the path to the hosts file can be given...
It does not work in Mac.
I've tried to get it working on windows host with linux container but i cant seem to get it done. I can't reach http://nginx.test. I've tried setting my DNS to...
MACOS It seems not work on OS X $ docker run -d -v /var/run/docker.sock:/tmp/docker.sock -v /etc/hosts:/tmp/hosts dvdarias/docker-hoster 5333e1b472c0d58d1b75b63d076913e8974ed74b04a820f7b55caccede76594a $ docker logs 5333e1b472c0d Updating hosts file with: ip: 172.17.0.2 domains: ['vigilant_northcutt',...
This also allows for ARM builds, for the Raspberry Pi for example.
Do you have some recommendations to use with active (enforcing) SELinux? No I have problem with access to files, but permissive mode of SELinux isn't good decision. ``` requests.exceptions.ConnectionError: ('Connection...
When i run command `docker run -d \ -v /var/run/docker.sock:/tmp/docker.sock \ -v /etc/hosts:/tmp/hosts \ dvdarias/docker-hoster` got error `Traceback (most recent call last): File "hoster.py", line 135, in main() File "hoster.py",...
**PS:** Thanks for sharing this solution!! After starting the container:  The log messages suggest that a new entry was created in my `/etc/hosts`, but for some reason it's not...
Hi, i found your solution and its really clean and beautiful. But i don't like trash in hosts file. And to remove all the trash, I added filtering for domains...
Ubuntu 20.04.6 LTS Docker version 24.0.7, build afdd53b After executing `docker run -v /var/run/docker.sock:/tmp/docker.sock -v /etc/hosts:/tmp/hosts dvdarias/docker-hoster` I have the following error ``` docker: Error response from daemon: failed to...