Score:0

Using RabbitMQ docker image

de flag

I started a rabbitmq docker container as described here https://registry.hub.docker.com/_/rabbitmq/

$ sudo docker run -d --hostname myrabbit --name rabbit rabbitmq:3

Then I got the docker container's IP like so:

$ sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rabbit
172.17.0.2

Then try to connect to rabbit with telnet like so:

$ telnet 172.17.0.2 4369

But I get this output:

Trying 172.17.0.2...
telnet: connect to address 172.17.0.2: Network is unreachable
telnet: Unable to connect to remote host

I tried port 5672 also with the same result. What am I doing wrong?

Score:1
de flag

I wasn't executing docker run ... correctly. I needed to use the -p option like so:

docker run -d --hostname my-rabbit --name some-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management

Then I can point my browser to http://localhost:15672 and everything works.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.