From e3781965054ab125b8037c1ffd6379d3d1834bc6 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Mon, 16 Oct 2017 11:54:01 -0700 Subject: [PATCH] Add snapshot label command to ctr Allows easier debugging of snapshots using labels Signed-off-by: Derek McGowan --- cmd/ctr/snapshot.go | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/cmd/ctr/snapshot.go b/cmd/ctr/snapshot.go index f8a2b5ecf..3b990cdb5 100644 --- a/cmd/ctr/snapshot.go +++ b/cmd/ctr/snapshot.go @@ -28,6 +28,7 @@ var snapshotCommand = cli.Command{ mountSnapshotCommand, commitSnapshotCommand, infoSnapshotCommand, + labelSnapshotCommand, }, } @@ -343,6 +344,58 @@ var infoSnapshotCommand = cli.Command{ }, } +var labelSnapshotCommand = cli.Command{ + Name: "label", + Usage: "add labels to content", + ArgsUsage: "[flags] [