Skip to content

Commit

Permalink
Improve docker run command in README
Browse files Browse the repository at this point in the history
The -P (--publish-all) is documented as

> Publish all exposed ports to random ports

So one would have to look up the port to use on the host

    $ docker port $(docker ps -q)
    5672/tcp -> 0.0.0.0:32771
    15672/tcp -> 0.0.0.0:32770

Adjust the "docker run" command to map the AMQP and HTTP port, so users
rest of the instructions are true.

[ci skip]
  • Loading branch information
dentarg committed Oct 30, 2023
1 parent 219b9c5 commit 1a78484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ for an example.
Docker images are published to [Docker Hub](https://hub.docker.com/r/cloudamqp/lavinmq).
Fetch and run the latest version with:

`docker run --rm -it -P -v /var/lib/lavinmq:/tmp/amqp cloudamqp/lavinmq`
docker run --rm -it -p 5672:5672 -p 15672:15672 -v /var/lib/lavinmq:/tmp/amqp cloudamqp/lavinmq

You are then able to visit the management UI at [http://localhost:15672](http://localhost:15672) and
start publishing/consuming messages to `amqp://guest:guest@localhost`.
Expand Down

0 comments on commit 1a78484

Please sign in to comment.