singularity icon indicating copy to clipboard operation
singularity copied to clipboard

Singularity images should be reversible back to Docker

Open vsoch opened this issue 8 years ago • 6 comments

If we can import Singularity from Docker, we should also be able to export Singularity back to Docker. We will need to think about what this means in terms of metadata, etc. Minimally, we could have a Singularity build files commands translated into the matching Dockerfile commands.

vsoch avatar Dec 13 '16 23:12 vsoch

With the OCI compliance efforts on going, this issue can become a PR in the near future. Considerations:

  • As you said, reversible, the first requirement must be that the image came from a docker registry. Otherwise it will be really difficult to revert.
  • SIF don't handle the rootFS with layers as Docker AUFS does.

I think the workflow on this will be to export the rootFS to a tar file an them run docker import, taking into account the the tar file will also have the config.json OCI compatible.

ArangoGutierrez avatar Feb 01 '18 16:02 ArangoGutierrez

Hello,

This is a templated response that is being sent out to all open issues. We are working hard on 'rebuilding' the Singularity community, and a major task on the agenda is finding out what issues are still outstanding.

Please consider the following:

  1. Is this issue a duplicate, or has it been fixed/implemented since being added?
  2. Is the issue still relevant to the current state of Singularity's functionality?
  3. Would you like to continue discussing this issue or feature request?

Thanks, Carter

carterpeel avatar May 15 '21 16:05 carterpeel

I would up implementing a Singularity Python recipe converter, but it doesn’t do any image conversion. If a singularity image can be dumped into one layer it seems reasonable that a Docker conversion would be easy to do. See https://github.com/singularityhub/singularity2docker for logistics.

vsoch avatar May 15 '21 16:05 vsoch

This issue has been automatically marked as stale because it has not had activity in over 60 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 14 '21 17:07 stale[bot]

Don't close stalebot, the contributors to this issue have responded and it's the maintainers that have not.

vsoch avatar Jul 14 '21 17:07 vsoch

@vsoch We're looking into the issue carefully, soon will bring to community and discuss ways to better solve as well address this. Thankyou for keeping the interest in the subject.

pedroalvesbatista avatar Jul 15 '21 00:07 pedroalvesbatista

Old singularity repo issues are being ported to the new Apptainer issues https://github.com/apptainer/apptainer/issues/624

kmuriki avatar Aug 16 '22 01:08 kmuriki

I think this is a great feature. Being able to push singularity images to any container registry, e.g. docker hub.

wilke avatar Oct 20 '22 14:10 wilke

@wilke this is already possible with ORAS. See https://github.com/singularityhub/github-ci.

However this is fundamentally different from a conversion back to Docker, which the PR is asking for. It is technically possible: https://github.com/singularityhub/singularity2docker but could be better supported.

vsoch avatar Oct 20 '22 15:10 vsoch