docker run -d --rm -it --hostname my-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management
You can then go to http://localhost:15672/#/ in a browser.
In case you want to change port after container is created
stop running container
docker stop some-rabbitcommit the container
docker commit some-rabbit rabbitMqNOTE: The above,
test02is a new image that I'm constructing from thetest01container.re-run from the commited image
docker run -p 8080:8080 -tdrabbitMq
No comments:
Post a Comment