A
A
Alexander2017-02-01 11:19:10
Docker
Alexander, 2017-02-01 11:19:10

Why can't the php-fpm container connect to memcached?

I am using Laradock . In docker-compose.yml, I activated the memcached installation for php-fpm, I didn’t touch anything else. I launch containers and get the following error on the site:
8475b3e63eca464aba2f1bc4cc503c6a.png
At the same time, I try to launch it in my console telnet 127.0.0.1 11211and connect normally. It feels like the php-fpm container is not seeing the memcached container.
I'm just getting acquainted with the docker, help me figure out what's wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-02-01
@xpert13

Found my mistake. In the settings for php-fpm, you had to specify the correct extra_hosts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question