Q. What does the '--detach' or '-d' flag do when running 'docker run'?

  • (A) Runs the container in background mode
  • (B) Runs the container in interactive mode
  • (C) Assigns a random name to the container
  • (D) Forces the container to restart automatically
πŸ’¬ Discuss
βœ… Correct Answer: (A) Runs the container in background mode
Explanation: The '--detach' or '-d' flag runs the container in the background (detached mode).
Explanation by: Ranjeet
The '--detach' or '-d' flag runs the container in the background (detached mode).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
139
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
97%
Success Rate