A

Admin • 802.91K Points
Coach

Q. What is the purpose of the 'docker commit' command?

  • (A) To save changes made to a container as a new image
  • (B) To push an image to Docker Hub
  • (C) To create a new container
  • (D) To delete a Docker image
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin
The 'docker commit' command is used to create a new image from a container's changes. For example, 'docker commit <container_id> new_image_name'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.