MCQs > IT & Programming > Docker > For the 'docker-compose.yml' fragment below scala: build: ./scala expose: - 40000-50000 ports: - 9000:9000 - 4040:4040 links: - mongo volumes: - ../../:/root/cardio - ~/.ivy2:/root/.ivy2 - ~/.sbt:/root/.sbt stdin_open: true mongo: image: mongo volumes_from: - data ports: - "27017:27017" Choose the most correct statement to describe the 'links' block

Docker MCQs

For the 'docker-compose.yml' fragment below

scala:

  build: ./scala

  expose:

    - 40000-50000

  ports:

    - 9000:9000

    - 4040:4040

  links:

    - mongo

  volumes:

    - ../../:/root/cardio

    - ~/.ivy2:/root/.ivy2

    - ~/.sbt:/root/.sbt

  stdin_open: true

 

mongo:

  image: mongo

  volumes_from:

    - data

  ports:

    - "27017:27017"

Choose the most correct statement to describe the 'links' block

Answer

Correct Answer: Allows the container to be linked with ALL instances of the mongo service , but each with different alias

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Docker Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Docker Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it