Weird issue with connecting to linked service


I’m experiencing a weird issue with getting a Node.js-based application to connect to a linked Redis container via docker-compose. The issue is mentioned here:

The docker image is a Node.js application, that loads official Redis and Mongo images. They boot up fine, but when the docker image of the Node.js app attempts to connect to the linked Redis image, the connection fails (connect ENOENT). However, when connecting to the Node.js app via docker and making a connection to the linked Redis image from a Node.js repl, it works fine (as tested by the person who filed instructions in the github issue, and I have also run myself and verified).

Any help with figuring this out would be greatly appreciated.