R

Ranjeet • 34.60K Points
Instructor I

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

Explanation by: Ranjeet
The '--detach' or '-d' flag runs the container in the background (detached mode).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.