Pin the IP
Give a container a fixed address on a custom subnet.
A intermediate Docker challenge worth 10 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: The ancient firewall in front of the mainframe allows exactly ONE source address: 172.28.0.50. Dynamic container IPs won't cut it.
Tasks:
- Create a bridge network
legacynetwith subnet 172.28.0.0/16 - Run
nginx:alpineasgateway-svcon that network with the static IP 172.28.0.50
Commands to learn: docker network create --subnet, docker run --ip
Run check when done.