A
A
Andrey Prozorov2019-01-16 19:32:19
PHP
Andrey Prozorov, 2019-01-16 19:32:19

How to run php-fpm on port 9001 under docker?

Andrey Prozorov:
Friends. I apologize in advance for a non-profiled question.
How to run php-fpm on port 9001 from docker? The problem is that I already have another php-fpm on port 9000 and it works fine on the same host machine. When I start a new container with php-fpm on port 9001 I get connection refused. If I disable the first one and change the port to 9000 everything works. Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fluffybear, 2019-01-16
@fluffybear

Show the command you are running. I suspect that the parameter --port 9001:9000 will help you.
This means that port 9001 from the host machine will be forwarded to port 9000 in the container.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question