P

Priyanka Tomar • 35.28K Points
Coach

Q. What does the '--rm' flag do when running a Docker container?

  • (A) Removes the container when it stops
  • (B) Runs the container in detached mode
  • (C) Rebuilds the image every time
  • (D) Maps the container port to a host port

Explanation by: Priyanka Tomar
The '--rm' flag removes the container automatically once it stops.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.