Docker - Commit (Image History)

> Virtualization - (Virtual Machine|Container) > Docker

1 - About

Create a new image from a container's changes

A RUN instruction in a build dockerfile generates commits. containers can then be created from any point in an image’s history, much like source control.

Advertising

3 - Example

Persisting after a commit

docker commit -m "With Login" containerName gerardnico/cli:latest