Bird
0
0

Which Docker command correctly starts a container with a read-only root filesystem?

easy📝 Syntax Q3 of 15
Docker - Security
Which Docker command correctly starts a container with a read-only root filesystem?
Adocker run --read-only ubuntu bash
Bdocker run --read-write ubuntu bash
Cdocker run --read-only-fs ubuntu bash
Ddocker run --readonly ubuntu bash
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct flag

    The correct flag to make the container filesystem read-only is --read-only.
  2. Step 2: Check command syntax

    docker run --read-only ubuntu bash uses the correct flag and syntax.
  3. Final Answer:

    docker run --read-only ubuntu bash -> Option A
  4. Quick Check:

    Use --read-only exactly [OK]
Quick Trick: Use exact flag --read-only to enable read-only FS [OK]
Common Mistakes:
  • Using incorrect flag names like --readonly or --read-only-fs
  • Confusing read-only with read-write flags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes