Working with Snapshots

Snapshots in Docker are point-in-time captures of a volume’s state. They allow you to quickly roll back to a previously recorded point and are used primarily for debugging and testing rather than as a full backup solution.

Snapshots preserve changes relative to the base image by creating a new layer and are used to capture the state of data on volumes or to export container configuration.

Note

Creating and deploying from a snapshot is only possible when fully stopped.

Go to the list of volumes:

../../../_images/snapshot_01.png

Then click Snapshots:

../../../_images/snapshot_02.png

The list shows 2 types of snapshots:

  • Workspace Snapshots - snapshots configured in the workspace configuration, for example, demo data.

  • Namespace Snapshots - snapshots local to a namespace that can be managed.

../../../_images/snapshot_03.png

Available snapshot actions:

  1. Create a new snapshot — enter a name and confirm creation:

    ../../../_images/snapshot_04.png ../../../_images/snapshot_05.png
  2. Go to the snapshot directory — opens the folder containing the created archives:

    ../../../_images/snapshot_06.png
  3. Rename snapshot:

    ../../../_images/snapshot_09.png
  4. Deploy data from a snapshot:

    ../../../_images/snapshot_07.png
  5. Delete snapshot:

    ../../../_images/snapshot_08.png

Deploy a snapshot on another computer

On the source workstation:

  • create a snapshot;

  • go to the snapshot directory using button (2);

  • copy and transfer the required archive.

On the target workstation:

  • create a new namespace,

  • go to the snapshot directory using button (2);

  • add the received archive to the folder;

  • go to the snapshot list;

  • deploy data from the snapshot (4).