Module: Compose Operations & IaC Activity type: Quiz / retrieval practice Target: ≥80% Objective: Explain the difference between a container port and a host-published port
Learn
Questions
In plain words: Read this block, then try the next action. If you feel stuck, tap What this means.
What is the difference between a container listening on port 8080 and Docker publishing port 8080?
Why can the client resolve gateway by service name?
Why should the client not be able to resolve or contact database in this lab?
Which service is multi-homed, and why?
Why is a generic failed wget command insufficient proof of network isolation?
What does internal: true add to the backend network, and what security guarantees does it not provide?
What result should docker compose port gateway 8080 produce in this lab?
What container names should Compose v2 generate for the three services in the explicitly named class79 project?
In plain words: Compose is the recipe file that starts and stops your app group together.
Learn
After scoring
In plain words: Read this block, then try the next action. If you feel stuck, tap What this means.