Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Support container export #2161

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

turan18
Copy link

@turan18 turan18 commented Apr 6, 2023

Adding support for container export. Still WIP.

Resolves: #1854

TODO:

@turan18 turan18 force-pushed the add-export branch 4 times, most recently from 70a9e18 to 436959f Compare April 6, 2023 23:07
Signed-off-by: Yasin Turan <turyasin@amazon.com>

// TODO: Add tar options for compression, whiteout files, chown ..etc

func NewTarballer(writer io.Writer) *Tarballer {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably you can just use https://pkg.go.dev/github.com/containerd/containerd/archive#WriteDiff .
(input A = container rootfs, input B = an empty dir)

@fahedouch
Copy link
Member

Any updates regarding this ?

Uid/gid mapping is currently supported for rootfull container right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support nerdctl export
3 participants