Hands-on task
The service listens on 127.0.0.1 — neighbors can't reach it
web calls orders at orders:8080 (network shop) and gets 502, although inside orders itself everything answers: docker exec orders wget -qO- http://127.0.0.1:8080/.
Find out why the neighbors can't reach orders and fix it. The settings of orders are in /root/orders/orders.env — fix them there and recreate orders with the same name, in the shop network, with this env file. Don't touch web.
The lab has its own Docker with no internet access; the images are already loaded: izzylab/minihttp:1, alpine:3.21, busybox:1.36, nginx:1.27-alpine. izzylab/minihttp is a tiny HTTP service on port 8080: GET / answers <NAME> ok, GET /call itself goes to http://<UPSTREAM>/ and answers <NAME> -> <the neighbor's reply> (or 502), GET /env shows its settings. It is configured with the environment variables NAME, PORT, BIND (the address it listens on) and UPSTREAM.
- bind address
- ss
- nsenter
- docker --env-file