containerd/cmd/ctr/commands
Wei Fu 506b815483 remotes: add distribution labels to blob data
We can use cross repository push feature to reuse the existing blobs in
the same registry. Before make push fast, we know where the blob comes
from.

Use the `containerd.io/distribution.source. = [,]` as label format. For
example, the blob is downloaded by the docker.io/library/busybox:latest
and the label will be

    containerd.io/distribution.source.docker.io = library/busybox

If the blob is shared by different repos in the same registry, the repo
name will be appended, like:

    containerd.io/distribution.source.docker.io = library/busybox,x/y

NOTE:
1. no need to apply for legacy docker image schema1.
2. the concurrent fetch actions might miss some repo names in label, but
it is ok.
3. it is optional. no need to add label if the engine only uses images
not push.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-03-12 13:42:54 +08:00
..
containers Merge pull request #2632 from ehazlett/checkpoint-restore 2018-11-20 16:31:08 -08:00
content remotes: add distribution labels to blob data 2019-03-12 13:42:54 +08:00
events Correctly handle reading from events channel 2018-04-25 11:21:22 -04:00
images ctr/commands/images/push: don't show progress if it is debug mode 2019-03-05 22:21:55 +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 Licence header added 2018-02-19 10:32:26 +09:00
plugins Introduce plugins/list subcommand 2018-07-02 10:20:20 +03:00
pprof enhance: support specific duration for profile collection 2018-10-10 22:57:54 +08:00
run Add runc.v2 multi-shim 2019-02-21 11:09:46 -05:00
shim Runtime v2 2018-07-17 10:21:29 -04:00
snapshots content: change Writer/ReaderAt to take OCI 2018-06-01 11:51:43 +09:00
tasks Add runc.v2 multi-shim 2019-02-21 11:09:46 -05:00
version Licence header added 2018-02-19 10:32:26 +09:00
client.go Fixes for runtimev2 and checkpoint restore 2018-07-20 12:09:29 -04:00
commands_unix.go Move ContainerFlags to "commands" package 2018-06-20 18:33:59 -07:00
commands_windows.go Adding ctr memory and cpu flags 2018-12-10 13:31:59 -08:00
commands.go Adding ctr memory and cpu flags 2018-12-10 13:31:59 -08:00
resolver.go bugfix: use skip-verify flag in ctr instead of insecure 2018-11-02 23:51:37 +08:00
signals.go signals: move ParseSignal to containerd package 2018-09-27 15:53:38 -07:00