Bird
0
0

Which Docker command is used to list all secrets currently available in the Docker swarm?

easy📝 Conceptual Q2 of 15
Docker - Security
Which Docker command is used to list all secrets currently available in the Docker swarm?
Adocker secret list
Bdocker secret ls
Cdocker secrets show
Ddocker secret display
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct Docker secret listing command

    The official Docker command to list secrets is docker secret ls.
  2. Step 2: Verify other options

    Options B, C, and D are incorrect because they use invalid or non-existent Docker commands.
  3. Final Answer:

    docker secret ls -> Option B
  4. Quick Check:

    List secrets command = docker secret ls [OK]
Quick Trick: Use 'ls' to list secrets, not 'list' or 'show' [OK]
Common Mistakes:
  • Using 'docker secret list' instead of 'ls'
  • Trying commands that don't exist like 'show' or 'display'
  • Confusing secrets commands with service commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes