title: Working with RabbitMQ inside a Docker container
body: <p>I'm using the official Docker <a href="https://registry.hub.docker.com/_/rabbitmq/" rel="nofollow">RabbitMQ image</a>.
  I was following the instructions, runnig the command<br>
  <code>docker run -d -e RABBITMQ_NODENAME=my-rabbit --name some-rabbit -p 8080:15672 rabbitmq:3-management</code></p>
  
  <p>I added <code>-p 5672:5672</code> to the command, even though I'm not completely sure it's needed.  </p>
  
  <p>I'm using Python with Pika. The command is <code>pika.BlockingConnection(pika.ConnectionParameters(host=queueServer, credentials=credentials))</code></p>
  
  <p>When I run my code from the Docker host machine, everything works just fine.
  But when I try the same code from another machine I get an error <code>AMQPConnectionError: 2.0</code>.
  The code has the docker host name in all the RabbitMQ commands. I made sure that name resolves correctly (using ping)</p>
  
  <p>Is there anything else I need to configure to access RabbitMQ (in the container) remotely?</p>