initial commit

This commit is contained in:
Adis Durakovic 2024-11-06 14:54:44 +01:00
parent 0b24074fbf
commit 6ca95cf3dd

View file

@ -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