🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Pubsub+ in docker - cannot open admin console on web browser after creating pubsub+ container
Hi,
I am testing pubsub+ in docker that I pull from docker hub after that running docker container and open port for admin as well. But when I try to access admin console from http://localhost:8080, it's nothing happen. So what should I check first to get the issue?
Thanks in advance.
Lukman
Best Answer
-
Hi all,
I got it, it's running well when I change my IP to http://192.168.99.100:8080 instead of http://localhost:8080. Simply just checking docker info and then got this detail IP3
Answers
-
Hi @lukmanul
For docker, you can try to see 'inside' first. I'll usually just get in to the broker, something like:
$ docker exec -ti <mycontainername> /bin/bash # cli solace> show services
and see if the 8080 is U (for up) or if there's any error.
And you can try from local just to rule out networking issues:
$ curl localhost:8080
it should give you some HTML codes, or error code if it's not running.You can also quickly check the docker logs
$ docker logs -50f <containername>
cheers,
Ari0 -
@lukmanul, I'd agree it looks like a network issue. The first step is to check docker is exposing port 8080 or if it has been mapped to another port. The easiest way to do that is to use "docker inspect" and check the "HostConfig" section, subsection "PortBindings":
docker inspect pubSubStandardSingleNode
Gives me:... "HostConfig": { ... "PortBindings": { ... "8080/tcp": [ { "HostIp": "", "HostPort": "8080" }
So I can tell that 8080 on my container/broker is mapped to 8080 on my localhost. You may find 8080 on your container has been mapped to a different port, say 8081.
0 -
that looks good to me.
how about trying with other browser or incognito mode? And maybe try with your actual IP address instead of localhost? I've had some issues with localhost with Safari/macOS, just to rule that out as I don't have experience with this on Windows.
0 -
Hi all,
I got it, it's running well when I change my IP to http://192.168.99.100:8080 instead of http://localhost:8080. Simply just checking docker info and then got this detail IP3