initial commit
This commit is contained in:
parent
0b24074fbf
commit
6ca95cf3dd
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# dbus-1-devel glib2-devel
|
|
||||||
|
|
||||||
import docker
|
import docker
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
@ -136,7 +134,7 @@ def generate_hosts_entries(container_ips):
|
||||||
|
|
||||||
def update_hosts_file(container_ips):
|
def update_hosts_file(container_ips):
|
||||||
# Create hosts file content
|
# Create hosts file content
|
||||||
hosts_content = "# Auto-generated by docker-dns-monitor\n"
|
hosts_content = "# Auto-generated by docker-hosts-provider\n"
|
||||||
hosts_content += "127.0.0.1 localhost\n\n"
|
hosts_content += "127.0.0.1 localhost\n\n"
|
||||||
|
|
||||||
# Add entries for each subnet and remove duplicates
|
# Add entries for each subnet and remove duplicates
|
||||||
|
|
Loading…
Reference in a new issue