Podcast
Questions and Answers
Which statements about Docker and Containers are TRUE? (Multi-Select)
Which statements about Docker and Containers are TRUE? (Multi-Select)
- Containers can run on the cloud; Docker Hub is a registry
- Multiple containers can be run from a single Docker image
- A & B (correct)
- A container is an instance of a Dockerfile
A Docker container uses the "localhost" alias to communicate with the host machine
A Docker container uses the "localhost" alias to communicate with the host machine
- True
- False (correct)
- Null
- Null
Which statement about Docker is true?
Which statement about Docker is true?
- Containers are hosted in a Docker registry
- Every container is a microservice
- Legacy systems cannot be containerised
- Port forwarding allows the outside world to reach a container (correct)
Requests on host port 5100 are mapped to internal container IP/port at 172.17.0.3:5000
mapping localhost:5100 to 172.17.03:5000
Requests on host port 5100 are mapped to internal container IP/port at 172.17.0.3:5000
mapping localhost:5100 to 172.17.03:5000
Which of the following statements is FALSE about Docker? (One answer)
Which of the following statements is FALSE about Docker? (One answer)
How does Docker handle port conflicts when mapping the same external port to multiple containers?
How does Docker handle port conflicts when mapping the same external port to multiple containers?
Study Notes
Docker and Containers
- A Docker container uses the
localhost
alias to communicate with the host machine.
Port Mapping
- Requests on host port 5100 are mapped to internal container IP/port at
172.17.0.3:5000
. - This is achieved by mapping
localhost:5100
to172.17.0.3:5000
.
Port Conflicts
- Docker handles port conflicts when mapping the same external port to multiple containers.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Docker