containerd/cmd/ctr/commands
Wei Fu 6681cc4b94 ctr/snapshots/diff: don't show the media-type in output
By default, diff subcommand will print tar(.gz) on stdout. If we print
the media-type in stdout, the output will create invalid tar(.gz) data.

```
// before
➜  containerd git:(move_stdout_to_stderr) sudo ctr snapshot diff sha256:9f54eef412758095c8079ac465d494a2872e02e90bf1fb5f12a1641c0d1bb78b > /tmp/1.tar
➜  containerd git:(move_stdout_to_stderr) file /tmp/1.tar
/tmp/1.tar: data

// after change
➜  containerd git:(move_stdout_to_stderr) make bin/ctr
+ bin/ctr
➜  containerd git:(move_stdout_to_stderr) sudo bin/ctr snapshot diff sha256:9f54eef412758095c8079ac465d494a2872e02e90bf1fb5f12a1641c0d1bb78b > /tmp/2.tar

➜  containerd git:(move_stdout_to_stderr) file /tmp/2.tar
/tmp/2.tar: gzip compressed data, original size modulo 2^32 75155456
```

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2021-11-28 10:38:42 +08:00
..
containers feat: Add snapshotter label to the new snapshot for container. 2021-06-28 20:08:01 +08:00
content refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
events ctr events: do not exit on an error 2020-01-29 13:10:16 +09:00
images fix: wrong flag type 2021-09-29 16:22:51 +08:00
install Add optional install path 2018-09-11 10:36:00 -04:00
leases *: replace 3600 seconds with 1 hour 2018-08-02 11:40:03 -07:00
namespaces ctr namespaces: improve usage string 2021-09-21 12:26:29 +08:00
oci Fix exported comments enforcer in CI 2021-03-12 08:47:05 -08:00
plugins plugin status should be skip, not error 2021-03-15 18:04:37 +08:00
pprof Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
run Output a warning for label image labels instead of erroring 2021-10-14 19:25:48 +01:00
shim refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
snapshots ctr/snapshots/diff: don't show the media-type in output 2021-11-28 10:38:42 +08:00
tasks commands: Enables task metrics for Windows 2021-10-05 09:25:12 -07:00
version adding go version to client description 2019-10-06 13:38:51 +02:00
client.go implement ctr -connect-timeout 2019-09-16 13:56:53 +02:00
commands_unix.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
commands_windows.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
commands.go feat: Add snapshotter label to the new snapshot for container. 2021-06-28 20:08:01 +08:00
resolver.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
signals_linux.go Ignore SIGURG signals in signal forwarder 2020-09-04 16:19:31 -07:00
signals_notlinux.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
signals.go Ignore SIGURG signals in signal forwarder 2020-09-04 16:19:31 -07:00
utils.go Implemented image encryption/decryption libraries and ctr commands 2019-07-17 15:19:58 -04:00