GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • https://apptainer.org/docs/
  • Singularity
  • News
  • Docs
  • Admin Guide
  • User Guide
  • Archive
  • Contributed Content
  • Github Repo
  • Google Group
  • Singularity on Stack Overflow
  • Singularity Hub
  • Slack
  • Troubleshooting

This view

  • Original page
  • New address

GeezerVison is showing singularityware.github.io — image.export | Singularity

 
  • User Guide
  • Getting Started
    • Quick Start
    • Introduction
    • Installation
    • Build a Container
    • Build Environment
    • Container Recipes
    • Singularity Flow
    • Bind Paths and Mounts
    • Persistent Overlays
    • Running Services
    • Container Checks
    • Environment and Metadata
    • Reproducible SCI-F Apps
    • Singularity and Docker
    • Troubleshooting
  • Commands
    • Command Usage
    • build
    • exec
    • inspect
    • pull
    • run
    • shell
  • Image Command Group
    • image.export
    • image.expand
    • image.import
    • image.create
  • Instance Command Group
    • instance.start
    • instance.list
    • instance.stop
  • Deprecated
    • bootstrap

image.export

These docs are for Singularity Version 2.5.2. For older versions, see our archive

Export is a way to dump the contents of your container into a .tar.gz, or a stream to put into some other place. For example, you could stream this into an in memory tar in python. Importantly, this command was originally intended for Singularity version less than 2.4 in the case of exporting an ext3 filesystem. For Singularity greater than 2.4, the resulting export file is likely to be larger than the original squashfs counterpart. An example with an ext3 image is provided.

Here we export an image into a .tar file:

singularity image.export container.img > container.tar

We can also specify the file with --file

singularity image.export --file container.tar container.img

And here is the recommended way to compress your image:

singularity image.export container.img | gzip -9 > container.img.tar.gz

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.