The shop's containers need their own network. An old legacy network is left over from a previous setup.
Create the network and check its driver:
sh
docker network create shop
docker network lsStart the catalog web server and the session store on it:
sh
docker run -d --name catalog --network shop nginx:1.27
docker run -d --name sessions --network shop redis:7.4See both containers and their IPs:
sh
docker network inspect shopConfirm a container on shop reaches catalog by name:
sh
docker run --rm --network shop alpine:3.20 wget -qO- http://catalogRemove the network nothing uses:
sh
docker network rm legacy