ESD Week 3
6 Questions
5 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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

  • True
  • False (correct)
  • Null
  • Null
  • 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

    <p>True</p> Signup and view all the answers

    Which of the following statements is FALSE about Docker? (One answer)

    <p>Host port 5000 must map to container port 5000</p> Signup and view all the answers

    How does Docker handle port conflicts when mapping the same external port to multiple containers?

    <p>Docker does not allow multiple containers to share the same external port</p> Signup and view all the answers

    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 to 172.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.

    Quiz Team

    Description

    Docker

    More Like This

    Use Quizgecko on...
    Browser
    Browser