目录

[!CAUTION] This repository has been in-lined (using git-subtree) into winc-release. Please make any future contributions directly to winc-release.

diff-exporter

The diff-exporter extracts (exports) the diff layer given a running container ID and a bundle path (that contains the config.json). The layer is saved to the location provided by the -outputFile parameter. The output layer is of tar.gz mediatype and the filename is the sha256 of its contents.

Building

Make sure GOPATH is set. Then run:

go build

It generates a diff-exporter.exe in the current directory.

Usage

diff-exporter.exe <-outputFile outputFile> <-containerId containerId> <-bundlePath bundlePath>

Testing

Requirements

To run the entire suite of tests, do ginkgo -r .

The tests require the following env variables to be set:

  • GROOT_BINARY

  • GROOT_IMAGE_STORE

  • WINC_BINARY

  • WINC_TEST_ROOTFS

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号