Daily challenges →
🌊 Docker medium ⚡ 55 XP

What does `docker run -p 127.0.0.1:8080:80 myapp` do?

The optional host-ip prefix restricts binding to a specific interface — 127.0.0.1:8080:80 makes the service only accessible locally, not from external IPs.

🌊 This is a free sample — 507+ more questions on DevOps Ocean

Sign in free to practice the full question bank with daily challenges, XP, streaks, duels and a global leaderboard.

Practice the full bank — free →