MCQs > IT & Programming > Docker > For the following 'docker-compose.yml' fragement 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 Choose the most correct statement to describe the ' volumes' command as it appears in the code.

Docker MCQs

For the following 'docker-compose.yml' fragement 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 Choose the most correct statement to describe the ' volumes' command as it appears in the code.

Answer

Correct Answer: The ' volumes' command is used here to enable access from your container to a directory on the host machine.

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