new package: compression (ported from docker/pkg/archive)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
parent
82a2d766ec
commit
6089c1525b
105 changed files with 2120 additions and 7814 deletions
4
cmd/dist/apply.go
vendored
4
cmd/dist/apply.go
vendored
|
@ -5,8 +5,8 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/docker/containerd/archive"
|
||||
"github.com/docker/containerd/archive/compression"
|
||||
"github.com/docker/containerd/log"
|
||||
dockerarchive "github.com/docker/docker/pkg/archive"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
|
@ -23,7 +23,7 @@ var applyCommand = cli.Command{
|
|||
|
||||
log.G(ctx).Info("applying layer from stdin")
|
||||
|
||||
rd, err := dockerarchive.DecompressStream(os.Stdin)
|
||||
rd, err := compression.DecompressStream(os.Stdin)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue