P

Priyanka Tomar • 35.28K Points
Coach

Q. What does the 'docker commit' command do?

  • (A) Creates a new container from an existing image
  • (B) Saves changes made in a container to a new image
  • (C) Pushes an image to a remote registry
  • (D) Stops a running container
  • Correct Answer - Option(B)
  • Views: 40
  • Filed under category Docker

Explanation by: Priyanka Tomar
'docker commit' is used to create a new image from changes made to a running container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics