πŸ“Š Docker
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To save changes made to a container as a new image

Explanation: 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'.

Explanation by: Vikash Gupta
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'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
98
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
80%
Success Rate