mageddo / dns-proxy-server

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet
http://mageddo.github.io/dns-proxy-server/
Apache License 2.0
766 stars 76 forks source link

java.lang.NoClassDefFoundError: Could not initialize class com.github.dockerjava.transport.DomainSocket #465

Closed mageddo closed 2 weeks ago

mageddo commented 1 month ago

What is Happening / What is expected

Docker socket is not volumed, then DPS container can't connect to docker and check it is running inside a container, the error Could not initialize class com.github.dockerjava.transport.DomainSocket is not suggestive for the root cause.

dps-1  | 11:29:55.831 [Thread-2       ] WAR c.m.d.dnsconfigurator.DnsConfigurators            l=59   m=lambda$configurationHook$0      status=failedToConfigureAsDefaultDns, path=/host/etc/systemd/resolved.conf,/host/etc/resolv.conf,/etc/systemd/resolved.conf,/etc/resolv.conf, msg=Could not initialize class com.github.dockerjava.transport.DomainSocket
dps-1  | java.lang.NoClassDefFoundError: Could not initialize class com.github.dockerjava.transport.DomainSocket

Logs attached logs.txt

Specs

services:
  dps:
    image: defreitas/dns-proxy-server:3.19.1-snapshot
    command: --web-server-port 80
    volumes:
      - dps_vol:/app/conf

volumes: 
  dps_vol:

Changes