V

Vinay • 28.75K Points
Instructor II

Q. What is the purpose of the '--name' flag in 'docker run'?

  • (A) To assign a specific name to a container
  • (B) To specify the image name
  • (C) To specify the network
  • (D) To map ports between host and container
  • Correct Answer - Option(A)
  • Views: 39
  • Filed under category Docker

Explanation by: Vinay
The '--name' flag is used to assign a specific name to a container during its creation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics