TECHNICAL DOCS

Commiting containers with data (container snapshots)

A container with associated cloned data can be modified by a user and then snapshotted (or committed) to create a new image. This functionality is available for SQL Server and Oracle in the Enterprise Plus edition of Windocks. A developer working on their container can make modifications to the data. When work is complete, the developer can commit the container with the data to create an an image in seconds (no matter how big the data).

Create a container from an image that has data (See this to build the image). Use the web app or REST API to create a container with data or run the command below:

docker run -d yourImageName

Make changes to the data in the container and commit the container with the data. Use the web app (Go to Containers and clones, find your container, type in a new image name and click Snapshot). Or use the docker commit REST api. Or run the command line below.

docker commit YourContainerId FreshImageName

Create a container from the fresh image which has a writeable database clone. Use the web app or REST API to create a container with data or run the command below:

docker run -d FreshImageName

The new container includes an exact copy of the previously committed container. The commit and both runs are completed in seconds even if the database is terabytes in size. You may further commit this container and then create another image and so on.

 

 

Extend CI/CD to your data layer