"Los Algodones": App container cannot reach Redis
Scenario: "Los Algodones": App container cannot reach Redis
Level: Easy
Type: Fix
Tags: docker redis advent2026
Access: Public
Description: Two Docker containers are running: a small web app (app) on port :80 and a Redis cache (redis). The app is supposed to use Redis, but the page shows it cannot connect.
curl -s http://127.0.0.1/ returns:
Error: cannot connect to Redis
Redis itself is running. The app configures its Redis connection with the REDIS_HOST environment variable (see /home/admin/algodones).
Root (sudo) Access: True
Test: curl -s http://127.0.0.1/ returns OK. From inside the app container, Redis is reachable by the hostname redis.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 15 minutes.