CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 6: 701-100: LPIC-OT Exam 701: DevOps Tools Engineer

Given the following excerpt of a Dockerfile:Run apt-get ""y update && apt-get install ""y fortunes && apt-get cleanWhy are the multiple apt-get commands combined in one RUN statement instead of using multiple RUN statements?

Nội dung câu hỏi

Given the following excerpt of a Dockerfile:Run apt-get ""y update && apt-get install ""y fortunes && apt-get cleanWhy are the multiple apt-get commands combined in one RUN statement instead of using multiple RUN statements?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. To prevent the commands from running in parallel because Docker executes all RUN statements in their own container at the same time.
  2. B. To ensure the execution order of the commands because Docker might evaluate the statements of a Dockerfile in any order.
  3. C. To avoid the creation of unnecessary images because Docker creates a new image for each RUN statement.
  4. D. To execute both commands in the same container instance and void Docker to reset the container to the original base image. — đáp án hiện tại
  5. E. To execute the apt-get install command only if the apt-get update command was successful because Docker does not check the success of RUN statements.

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề