Akihiro Suda
dc48349248
epoch: propagate SOURCE_DATE_EPOCH via ctx
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2022-12-12 09:02:35 +09:00
yanggang
3abcfb5c07
keep the lower case letter for flag info
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2022-11-15 14:09:55 +08:00
Akihiro Suda
70fbedc217
archive: add WithSourceDateEpoch() for whiteouts
...
This makes diff archives to be reproducible.
The value is expected to be passed from CLI applications via the $SOUCE_DATE_EPOCH env var.
See https://reproducible-builds.org/docs/source-date-epoch/
for the $SOURCE_DATE_EPOCH specification.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2022-10-08 08:45:03 +09:00
ning.a.li
a303d552ad
ctr: Unify the delete subcommand alias
...
This commit unifies the following sub commands alias for
deleting/removing.
- containers
- tasks
- contents
- leases
- images
- snapshots
Signed-off-by: Ning Li <lining2020x@163.com >
2022-01-11 16:21:26 +08:00
haoyun
bbe46b8c43
feat: replace github.com/pkg/errors to errors
...
Signed-off-by: haoyun <yun.hao@daocloud.io >
Co-authored-by: zounengren <zouyee1989@gmail.com >
2022-01-07 10:27:03 +08:00
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
Shiming Zhang
b890f056e8
Fix content.ReaderAt close
...
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com >
2021-05-08 12:39:09 +08:00
Kathryn Baldauf
14df541a40
Add a new flag to images pull for printing out the pulled image's chainID
...
Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com >
2021-01-12 15:42:40 -08:00
Peng Wang
4988424fc0
* fix: view snapshot is deleted before diff
...
Signed-off-by: Peng Wang <wang_peng168@163.com >
2019-07-14 07:06:04 -04:00
Akihiro Suda
d88de4a34f
content: change Writer/ReaderAt to take OCI
...
This change allows implementations to resolve the location of the actual data
using OCI descriptor fields such as MediaType.
No OCI descriptor field is written to the store.
No change on gRPC API.
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2018-06-01 11:51:43 +09:00
Michael Crosby
ae4b78d1cc
Move progress into pkg
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com >
2018-05-22 13:32:25 -04:00
Stephen J Day
ed72059fac
cmd/snapshots: add gc.root to created snapshots
...
This adds gc.root label to snapshots created with prepare and commit via
the CLI. WIthout this, created snapshots get immediately garbage
collected. There may be a better solution but this seems to be a solid
stop gap.
We may also need to add more functionality around snapshot labeling for
the CLI but current use cases are unclear.
Signed-off-by: Stephen J Day <stevvooe@gmail.com >
2018-05-03 07:09:38 +02:00
Derek McGowan
43d0a5cb60
Pass in context to lease done function in client
...
Allows the client to choose the context to finish the lease.
This allows the client to switch contexts when the main context
used to the create the lease may have been cancelled.
Signed-off-by: Derek McGowan <derek@mcgstyle.net >
2018-03-22 14:09:24 -07:00
Kunal Kushwaha
b12c3215a0
Licence header added
...
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp >
2018-02-19 10:32:26 +09:00
Derek McGowan
b763777288
diff: rename differ to comparer
...
Remove combined interface and split implementations.
Signed-off-by: Derek McGowan <derek@mcgstyle.net >
2018-01-26 16:32:09 -08:00
Michael Crosby
4e755ad383
Merge pull request #1947 from jessvalarezo/ctr-snapshot-diff
...
ctr: snapshots diff command
2018-01-03 11:34:29 -05:00
Jess Valarezo
625eb5e661
ctr: snapshots diff command
...
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com >
2018-01-02 21:18:12 -05:00
Stephen J Day
9aeeefae55
cmd/ctr: stablize output of snapshot tree
...
Preserves the order of the tree output between each execution. Slightly
refactored the behavior to be more "object oriented".
Signed-off-by: Stephen J Day <stephen.day@docker.com >
2017-12-12 14:50:05 -08:00
Jess Valarezo
9885edfc44
rename snapshot->snapshots pkg
...
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com >
2017-11-29 14:55:02 -08:00
Jess Valarezo
61c8fe2307
ctr: snapshot->snapshots cmd, add aliases
...
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com >
2017-11-29 14:34:02 -08:00