Giter Site home page Giter Site logo

Comments (2)

AkihiroSuda avatar AkihiroSuda commented on July 23, 2024 1

OCI Archive with manifest.json is compatible with Docker Image Spec

from nerdctl.

soharaki avatar soharaki commented on July 23, 2024

@AkihiroSuda
Hi, when I export a tarball directly using client.Export will output the OCI Image Spec tar instead of a Docker Image Spec v1.2 tar.

  • Any client.Export options or alt-implementations which can export the Docker Image Spec v1.2?
  • Should I explicitly explain that it is the OCI Image Spec tar in the help?

Any advices. Thank you.

  • refs:
func saveContainer(images []string, out io.Writer, saveOpts []archive.ExportOpt, clicontext *cli.Context) error {
	client, ctx, cancel, err := newClient(clicontext)
	if err != nil {
		return err
	}
	defer cancel()

	// Set the default platform
	saveOpts = append(saveOpts, archive.WithPlatform(platforms.Default()))

	is := client.ImageService()
	for _, img := range images {
		saveOpts = append(saveOpts, archive.WithImage(is, img))
	}

	return client.Export(ctx, out, saveOpts...)
}

from nerdctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.