Docker image fails to start

I’m using the docker-compose YML example in the docs (with persistent data). but when I change the loopback IP address with the IP address of my docker host it always seems to fail. Here is the error that I am seeing:
2019-03-03 20:34:22,039 ERROR: org.graylog2.bootstrap.ServerBootstrap - Graylog startup failed. Exiting. Exception was:
java.lang.IllegalStateException: Expected to be healthy after starting. The following services are not running: {FAILED=[JerseyService [FAILED]]}
at$ServiceManagerState.checkHealthy( ~[graylog.jar:?]
at$ServiceManagerState.awaitHealthy( ~[graylog.jar:?]
at ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.startCommand( [graylog.jar:?]
at [graylog.jar:?]
at org.graylog2.bootstrap.Main.main( [graylog.jar:?]
Suppressed:$FailedService: JerseyService [FAILED]
Caused by: Cannot assign requested address
at Method) ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress( ~[graylog.jar:?]
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind( ~[graylog.jar:?]
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind( ~[graylog.jar:?]
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind( ~[graylog.jar:?]
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind( ~[graylog.jar:?]
at org.glassfish.grizzly.http.server.NetworkListener.start( ~[graylog.jar:?]
at org.glassfish.grizzly.http.server.HttpServer.start( ~[graylog.jar:?]
at org.graylog2.shared.initializers.JerseyService.startUpApi( ~[graylog.jar:?]
at org.graylog2.shared.initializers.JerseyService.startUp( ~[graylog.jar:?]
at$DelegateService$ ~[graylog.jar:?]
at$ ~[graylog.jar:?]
at ~[?:1.8.0_181]
2019-03-03 20:34:22,072 INFO : org.graylog2.commands.Server - SIGNAL received. Shutting down.
2019-03-03 20:34:22,076 INFO : org.graylog2.system.shutdown.GracefulShutdown - Graceful shutdown initiated.
2019-03-03 20:34:22,078 INFO : org.graylog2.system.shutdown.GracefulShutdown - Node status: [Halting [LB:DEAD]]. Waiting <3sec> for possible load balancers to recognize state change.
2019-03-03 20:34:26,082 INFO : org.graylog2.system.shutdown.GracefulShutdown - Goodbye.

what does your docker-compose look like and what is your given Network structure?

Thanks, I figured it out late last night. I am using the example YML in the docs. I had misunderstood how docker networking worked and had tried to bind to the address of the host. All good now.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.