S
S
sswwssww2021-02-02 21:09:00
RabbitMQ
sswwssww, 2021-02-02 21:09:00

How to make dockerfile from cli command?

There is a command: "docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management"
Tell me how can I make a Dockerfile out of it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2021-02-02
@sswwssww

Not much to do, something like:

FROM  rabbitmq:3-management

EXPOSE 5672
EXPOSE 15672

But you still have to run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question