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

Singularity images should be reversible back to Docker #414

Closed
vsoch opened this issue Dec 13, 2016 · 9 comments
Closed

Singularity images should be reversible back to Docker #414

vsoch opened this issue Dec 13, 2016 · 9 comments

Comments

@vsoch
Copy link
Collaborator

vsoch commented Dec 13, 2016

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.

@ArangoGutierrez
Copy link
Contributor

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.

@carterpeel
Copy link
Contributor

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

@vsoch
Copy link
Collaborator Author

vsoch commented May 15, 2021

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.

@stale
Copy link

stale bot commented Jul 14, 2021

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 stale bot added the stale label Jul 14, 2021
@vsoch
Copy link
Collaborator Author

vsoch commented Jul 14, 2021

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

@stale stale bot removed the stale label Jul 14, 2021
@pedroalvesbatista
Copy link
Contributor

@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.

@kmuriki
Copy link
Collaborator

kmuriki commented Aug 16, 2022

Old singularity repo issues are being ported to the new Apptainer issues
apptainer/apptainer#624

@kmuriki kmuriki closed this as completed Aug 16, 2022
@wilke
Copy link

wilke commented Oct 20, 2022

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

@vsoch
Copy link
Collaborator Author

vsoch commented Oct 20, 2022

@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.

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

No branches or pull requests

9 participants